;**********************************************************************************************
;Current Version Name "Chocolate Thunder" by eljorgejones
;Code Snippets and original concept from eq2botcommander from http://www.isxgames.com/forums/
;Original Version 20060705a of eq2botcommander written by Karye
;**********************************************************************************************
;Why all the xmlbuttonxxx1's and 1a's, well thats for allowing a button to have two states that are swapped on keypress.
;i.e.  1 button that starts something and then when you click it again it'll stop it
;For example I have one button to /camp desktop but I made it switch the buttons function on click again to do a /stand in case I hit to cancel camping.
;**********************************************************************************************

variable string MYCONFIGPATH="${LavishScript.HomeDirectory}/Scripts/EQ/Config"
variable string MYUIPATH="${LavishScript.HomeDirectory}/Scripts/EQ/UI"
variable string MYSCRIPTPATH="${LavishScript.HomeDirectory}/Scripts/EQ"
variable string WINDOWELEMENT=EQ Hotbuttons
variable string TABCONTROLELEMENT=eqbuttons
variable string GFRAME1=Ghost1
variable string GFRAME2=Ghost2
variable string GFRAME3=Ghost3
variable string GFRAME4=Ghost4
variable string MYSET=eqisbuttons
variable string buttonbind
variable string myeqbc
variable string mykeycombo
variable int ibethis
variable float myalpha
variable string uiversion=Landscape
variable string cversion=20100401da
variable string cssbversion=20100307p - Alpha Preview
variable bool cfgbail

#include ${LavishScript.HomeDirectory}/Scripts/EQ/eqbuttonslib.iss

;***********************************************************************************************************************
;Tab label/Alpha/UIOrientation variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string xmltab1
variable string xmltab2
variable string xmltab3
variable string xmltab4
variable string myxloc1
variable string myxloc2
variable string myxloc3
variable string myxloc4
variable string myyloc1
variable string myyloc2
variable string myyloc3
variable string myyloc4
variable string myxsize1
variable string myxsize2
variable string myxsize3
variable string myxsize4
variable string myysize1
variable string myysize2
variable string myysize3
variable string myysize4
variable string myghostkey=CTRL+F12
variable string mytexteditor
;***********************************************************************************************************************
;Font variable/Window X/Y Loc
;***********************************************************************************************************************

variable int xmlfontheight

;***********************************************************************************************************************
;Future variables for port bots
;***********************************************************************************************************************

variable string druidbot
variable string wizbot

;***********************************************************************************************************************
;Button xml variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string mybutton1=button1
variable string mybutton2=button2
variable string mybutton3=button3
variable string mybutton4=button4
variable string mybutton5=button5
variable string mybutton6=button6
variable string mybutton7=button7
variable string mybutton8=button8
variable string mybutton9=button9
variable string mybutton10=button10
variable string mybutton11=button11
variable string mybutton12=button12
variable string mybutton13=button13
variable string mybutton14=button14
variable string mybutton15=button15
variable string mybutton16=button16
variable string mybutton17=button17
variable string mybutton18=button18
variable string mybutton19=button19
variable string mybutton20=button20
variable string mybutton21=button21
variable string mybutton22=button22
variable string mybutton23=button23
variable string mybutton24=button24
variable string mybutton25=button25
variable string mybutton26=button26
variable string mybutton27=button27
variable string mybutton28=button28
variable string mybutton29=button29
variable string mybutton30=button30
variable string mybutton31=button31
variable string mybutton32=button32
variable string mybutton33=button33
variable string mybutton34=button34
variable string mybutton35=button35
variable string mybutton36=button36
variable string mybutton37=button37
variable string mybutton38=button38
variable string mybutton39=button39
variable string mybutton40=button40
variable string mybutton41=button41
variable string mybutton42=button42
variable string mybutton43=button43
variable string mybutton44=button44
variable string mybutton45=button45
variable string mybutton46=button46
variable string mybutton47=button47
variable string mybutton48=button48
variable string mybutton49=button49
variable string mybutton50=button50
variable string mybutton51=button51
variable string mybutton52=button52
variable string mybutton53=button53
variable string mybutton54=button54
variable string mybutton55=button55
variable string mybutton56=button56
variable string mybuttona1=buttona1
variable string mybuttona2=buttona2
variable string mybuttona3=buttona3
variable string mybuttona4=buttona4
variable string mybuttona5=buttona5
variable string mybuttona6=buttona6
variable string mybuttona7=buttona7
variable string mybuttona8=buttona8
variable string mybuttona9=buttona9
variable string mybuttona10=buttona10
variable string mybuttona11=buttona11
variable string mybuttona12=buttona12
variable string mybuttona13=buttona13
variable string mybuttona14=buttona14
variable string mybuttona15=buttona15
variable string mybuttona16=buttona16
variable string mybuttona17=buttona17
variable string mybuttona18=buttona18
variable string mybuttona19=buttona19
variable string mybuttona20=buttona20
variable string mybuttona21=buttona21
variable string mybuttona22=buttona22
variable string mybuttona23=buttona23
variable string mybuttona24=buttona24
variable string mybuttona25=buttona25
variable string mybuttona26=buttona26
variable string mybuttona27=buttona27
variable string mybuttona28=buttona28
variable string mybuttona29=buttona29
variable string mybuttona30=buttona30
variable string mybuttona31=buttona31
variable string mybuttona32=buttona32
variable string mybuttona33=buttona33
variable string mybuttona34=buttona34
variable string mybuttona35=buttona35
variable string mybuttona36=buttona36
variable string mybuttona37=buttona37
variable string mybuttona38=buttona38
variable string mybuttona39=buttona39
variable string mybuttona40=buttona40
variable string mybuttona41=buttona41
variable string mybuttona42=buttona42
variable string mybuttona43=buttona43
variable string mybuttona44=buttona44
variable string mybuttona45=buttona45
variable string mybuttona46=buttona46
variable string mybuttona47=buttona47
variable string mybuttona48=buttona48
variable string mybuttona49=buttona49
variable string mybuttona50=buttona50
variable string mybuttona51=buttona51
variable string mybuttona52=buttona52
variable string mybuttona53=buttona53
variable string mybuttona54=buttona54
variable string mybuttona55=buttona55
variable string mybuttona56=buttona56

;***********************************************************************************************************************
;Button text color variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string mycolory1
variable string mycolory2
variable string mycolory3
variable string mycolory4
variable string mycolory5
variable string mycolory6
variable string mycolory7
variable string mycolory8
variable string mycolory9
variable string mycolory10
variable string mycolory11
variable string mycolory12
variable string mycolory13
variable string mycolory14
variable string mycolory15
variable string mycolory16
variable string mycolory17
variable string mycolory18
variable string mycolory19
variable string mycolory20
variable string mycolory21
variable string mycolory22
variable string mycolory23
variable string mycolory24
variable string mycolory25
variable string mycolory26
variable string mycolory27
variable string mycolory28
variable string mycolory29
variable string mycolory30
variable string mycolory31
variable string mycolory32
variable string mycolory33
variable string mycolory34
variable string mycolory35
variable string mycolory36
variable string mycolory37
variable string mycolory38
variable string mycolory39
variable string mycolory40
variable string mycolory41
variable string mycolory42
variable string mycolory43
variable string mycolory44
variable string mycolory45
variable string mycolory46
variable string mycolory47
variable string mycolory48
variable string mycolory49
variable string mycolory50
variable string mycolory51
variable string mycolory52
variable string mycolory53
variable string mycolory54
variable string mycolory55
variable string mycolory56
variable string mycolorz1
variable string mycolorz2
variable string mycolorz3
variable string mycolorz4
variable string mycolorz5
variable string mycolorz6
variable string mycolorz7
variable string mycolorz8
variable string mycolorz9
variable string mycolorz10
variable string mycolorz11
variable string mycolorz12
variable string mycolorz13
variable string mycolorz14
variable string mycolorz15
variable string mycolorz16
variable string mycolorz17
variable string mycolorz18
variable string mycolorz19
variable string mycolorz20
variable string mycolorz21
variable string mycolorz22
variable string mycolorz23
variable string mycolorz24
variable string mycolorz25
variable string mycolorz26
variable string mycolorz27
variable string mycolorz28
variable string mycolorz29
variable string mycolorz30
variable string mycolorz31
variable string mycolorz32
variable string mycolorz33
variable string mycolorz34
variable string mycolorz35
variable string mycolorz36
variable string mycolorz37
variable string mycolorz38
variable string mycolorz39
variable string mycolorz40
variable string mycolorz41
variable string mycolorz42
variable string mycolorz43
variable string mycolorz44
variable string mycolorz45
variable string mycolorz46
variable string mycolorz47
variable string mycolorz48
variable string mycolorz49
variable string mycolorz50
variable string mycolorz51
variable string mycolorz52
variable string mycolorz53
variable string mycolorz54
variable string mycolorz55
variable string mycolorz56

;***********************************************************************************************************************
;Button label variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string mylabel1text1
variable string mylabel1text2
variable string mylabel1text3
variable string mylabel1text4
variable string mylabel1text5
variable string mylabel1text6
variable string mylabel1text7
variable string mylabel1text8
variable string mylabel1text9
variable string mylabel1text10
variable string mylabel1text11
variable string mylabel1text12
variable string mylabel1text13
variable string mylabel1text14
variable string mylabel1text15
variable string mylabel1text16
variable string mylabel1text17
variable string mylabel1text18
variable string mylabel1text19
variable string mylabel1text20
variable string mylabel1text21
variable string mylabel1text22
variable string mylabel1text23
variable string mylabel1text24
variable string mylabel1text25
variable string mylabel1text26
variable string mylabel1text27
variable string mylabel1text28
variable string mylabel1text29
variable string mylabel1text30
variable string mylabel1text31
variable string mylabel1text32
variable string mylabel1text33
variable string mylabel1text34
variable string mylabel1text35
variable string mylabel1text36
variable string mylabel1text37
variable string mylabel1text38
variable string mylabel1text39
variable string mylabel1text40
variable string mylabel1text41
variable string mylabel1text42
variable string mylabel1text43
variable string mylabel1text44
variable string mylabel1text45
variable string mylabel1text46
variable string mylabel1text47
variable string mylabel1text48
variable string mylabel1text49
variable string mylabel1text50
variable string mylabel1text51
variable string mylabel1text52
variable string mylabel1text53
variable string mylabel1text54
variable string mylabel1text55
variable string mylabel1text56
variable string mylabel2text1
variable string mylabel2text2
variable string mylabel2text3
variable string mylabel2text4
variable string mylabel2text5
variable string mylabel2text6
variable string mylabel2text7
variable string mylabel2text8
variable string mylabel2text9
variable string mylabel2text10
variable string mylabel2text11
variable string mylabel2text12
variable string mylabel2text13
variable string mylabel2text14
variable string mylabel2text15
variable string mylabel2text16
variable string mylabel2text17
variable string mylabel2text18
variable string mylabel2text19
variable string mylabel2text20
variable string mylabel2text21
variable string mylabel2text22
variable string mylabel2text23
variable string mylabel2text24
variable string mylabel2text25
variable string mylabel2text26
variable string mylabel2text27
variable string mylabel2text28
variable string mylabel2text29
variable string mylabel2text30
variable string mylabel2text31
variable string mylabel2text32
variable string mylabel2text33
variable string mylabel2text34
variable string mylabel2text35
variable string mylabel2text36
variable string mylabel2text37
variable string mylabel2text38
variable string mylabel2text39
variable string mylabel2text40
variable string mylabel2text41
variable string mylabel2text42
variable string mylabel2text43
variable string mylabel2text44
variable string mylabel2text45
variable string mylabel2text46
variable string mylabel2text47
variable string mylabel2text48
variable string mylabel2text49
variable string mylabel2text50
variable string mylabel2text51
variable string mylabel2text52
variable string mylabel2text53
variable string mylabel2text54
variable string mylabel2text55
variable string mylabel2text56

;***********************************************************************************************************************
;Button action variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string mypress1action1
variable string mypress1action2
variable string mypress1action3
variable string mypress1action4
variable string mypress1action5
variable string mypress1action6
variable string mypress1action7
variable string mypress1action8
variable string mypress1action9
variable string mypress1action10
variable string mypress1action11
variable string mypress1action12
variable string mypress1action13
variable string mypress1action14
variable string mypress1action15
variable string mypress1action16
variable string mypress1action17
variable string mypress1action18
variable string mypress1action19
variable string mypress1action20
variable string mypress1action21
variable string mypress1action22
variable string mypress1action23
variable string mypress1action24
variable string mypress1action25
variable string mypress1action26
variable string mypress1action27
variable string mypress1action28
variable string mypress1action29
variable string mypress1action30
variable string mypress1action31
variable string mypress1action32
variable string mypress1action33
variable string mypress1action34
variable string mypress1action35
variable string mypress1action36
variable string mypress1action37
variable string mypress1action38
variable string mypress1action39
variable string mypress1action40
variable string mypress1action41
variable string mypress1action42
variable string mypress1action43
variable string mypress1action44
variable string mypress1action45
variable string mypress1action46
variable string mypress1action47
variable string mypress1action48
variable string mypress1action49
variable string mypress1action50
variable string mypress1action51
variable string mypress1action52
variable string mypress1action53
variable string mypress1action54
variable string mypress1action55
variable string mypress1action56
variable string mypress2action1
variable string mypress2action2
variable string mypress2action3
variable string mypress2action4
variable string mypress2action5
variable string mypress2action6
variable string mypress2action7
variable string mypress2action8
variable string mypress2action9
variable string mypress2action10
variable string mypress2action11
variable string mypress2action12
variable string mypress2action13
variable string mypress2action14
variable string mypress2action15
variable string mypress2action16
variable string mypress2action17
variable string mypress2action18
variable string mypress2action19
variable string mypress2action20
variable string mypress2action21
variable string mypress2action22
variable string mypress2action23
variable string mypress2action24
variable string mypress2action25
variable string mypress2action26
variable string mypress2action27
variable string mypress2action28
variable string mypress2action29
variable string mypress2action30
variable string mypress2action31
variable string mypress2action32
variable string mypress2action33
variable string mypress2action34
variable string mypress2action35
variable string mypress2action36
variable string mypress2action37
variable string mypress2action38
variable string mypress2action39
variable string mypress2action40
variable string mypress2action41
variable string mypress2action42
variable string mypress2action43
variable string mypress2action44
variable string mypress2action45
variable string mypress2action46
variable string mypress2action47
variable string mypress2action48
variable string mypress2action49
variable string mypress2action50
variable string mypress2action51
variable string mypress2action52
variable string mypress2action53
variable string mypress2action54
variable string mypress2action55
variable string mypress2action56

;***********************************************************************************************************************
;Button hidden toggle variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable bool mybuttonhide1
variable bool mybuttonhide2
variable bool mybuttonhide3
variable bool mybuttonhide4
variable bool mybuttonhide5
variable bool mybuttonhide6
variable bool mybuttonhide7
variable bool mybuttonhide8
variable bool mybuttonhide9
variable bool mybuttonhide10
variable bool mybuttonhide11
variable bool mybuttonhide12
variable bool mybuttonhide13
variable bool mybuttonhide14
variable bool mybuttonhide15
variable bool mybuttonhide16
variable bool mybuttonhide17
variable bool mybuttonhide18
variable bool mybuttonhide19
variable bool mybuttonhide20
variable bool mybuttonhide21
variable bool mybuttonhide22
variable bool mybuttonhide23
variable bool mybuttonhide24
variable bool mybuttonhide25
variable bool mybuttonhide26
variable bool mybuttonhide27
variable bool mybuttonhide28
variable bool mybuttonhide29
variable bool mybuttonhide30
variable bool mybuttonhide31
variable bool mybuttonhide32
variable bool mybuttonhide33
variable bool mybuttonhide34
variable bool mybuttonhide35
variable bool mybuttonhide36
variable bool mybuttonhide37
variable bool mybuttonhide38
variable bool mybuttonhide39
variable bool mybuttonhide40
variable bool mybuttonhide41
variable bool mybuttonhide42
variable bool mybuttonhide43
variable bool mybuttonhide44
variable bool mybuttonhide45
variable bool mybuttonhide46
variable bool mybuttonhide47
variable bool mybuttonhide48
variable bool mybuttonhide49
variable bool mybuttonhide50
variable bool mybuttonhide51
variable bool mybuttonhide52
variable bool mybuttonhide53
variable bool mybuttonhide54
variable bool mybuttonhide55
variable bool mybuttonhide56

;***********************************************************************************************************************
;Button label variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string uxmlbuttontext1
variable string uxmlbuttontext1a
variable string uxmlbuttontext2
variable string uxmlbuttontext2a
variable string uxmlbuttontext3
variable string uxmlbuttontext3a
variable string uxmlbuttontext4
variable string uxmlbuttontext4a
variable string uxmlbuttontext5
variable string uxmlbuttontext5a
variable string uxmlbuttontext6
variable string uxmlbuttontext6a
variable string uxmlbuttontext7
variable string uxmlbuttontext7a
variable string uxmlbuttontext8
variable string uxmlbuttontext8a
variable string uxmlbuttontext9
variable string uxmlbuttontext9a
variable string uxmlbuttontext10
variable string uxmlbuttontext10a
variable string uxmlbuttontext11
variable string uxmlbuttontext11a
variable string uxmlbuttontext12
variable string uxmlbuttontext12a
variable string uxmlbuttontext13
variable string uxmlbuttontext13a
variable string uxmlbuttontext14
variable string uxmlbuttontext14a
variable string uxmlbuttontext15
variable string uxmlbuttontext15a
variable string uxmlbuttontext16
variable string uxmlbuttontext16a
variable string uxmlbuttontext17
variable string uxmlbuttontext17a
variable string uxmlbuttontext18
variable string uxmlbuttontext18a
variable string uxmlbuttontext19
variable string uxmlbuttontext19a
variable string uxmlbuttontext20
variable string uxmlbuttontext20a
variable string uxmlbuttontext21
variable string uxmlbuttontext21a
variable string uxmlbuttontext22
variable string uxmlbuttontext22a
variable string uxmlbuttontext23
variable string uxmlbuttontext23a
variable string uxmlbuttontext24
variable string uxmlbuttontext24a
variable string uxmlbuttontext25
variable string uxmlbuttontext25a
variable string uxmlbuttontext26
variable string uxmlbuttontext26a
variable string uxmlbuttontext27
variable string uxmlbuttontext27a
variable string uxmlbuttontext28
variable string uxmlbuttontext28a
variable string uxmlbuttontext29
variable string uxmlbuttontext30
variable string uxmlbuttontext31
variable string uxmlbuttontext32
variable string uxmlbuttontext33
variable string uxmlbuttontext34
variable string uxmlbuttontext35
variable string uxmlbuttontext36
variable string uxmlbuttontext37
variable string uxmlbuttontext38
variable string uxmlbuttontext39
variable string uxmlbuttontext40
variable string uxmlbuttontext41
variable string uxmlbuttontext42
variable string uxmlbuttontext43
variable string uxmlbuttontext44
variable string uxmlbuttontext45
variable string uxmlbuttontext46
variable string uxmlbuttontext47
variable string uxmlbuttontext48
variable string uxmlbuttontext49
variable string uxmlbuttontext50
variable string uxmlbuttontext51
variable string uxmlbuttontext52
variable string uxmlbuttontext53
variable string uxmlbuttontext54
variable string uxmlbuttontext55
variable string uxmlbuttontext56
variable string uxmlbuttontext29a
variable string uxmlbuttontext30a
variable string uxmlbuttontext31a
variable string uxmlbuttontext32a
variable string uxmlbuttontext33a
variable string uxmlbuttontext34a
variable string uxmlbuttontext35a
variable string uxmlbuttontext36a
variable string uxmlbuttontext37a
variable string uxmlbuttontext38a
variable string uxmlbuttontext39a
variable string uxmlbuttontext40a
variable string uxmlbuttontext41a
variable string uxmlbuttontext42a
variable string uxmlbuttontext43a
variable string uxmlbuttontext44a
variable string uxmlbuttontext45a
variable string uxmlbuttontext46a
variable string uxmlbuttontext47a
variable string uxmlbuttontext48a
variable string uxmlbuttontext49a
variable string uxmlbuttontext50a
variable string uxmlbuttontext51a
variable string uxmlbuttontext52a
variable string uxmlbuttontext53a
variable string uxmlbuttontext54a
variable string uxmlbuttontext55a
variable string uxmlbuttontext56a



;***********************************************************************************************************************
;key combo variables read in from ${MYCONFIGPATH}/eqisbuttonsconfig.xml
;***********************************************************************************************************************

variable string vxmlbutton1
variable string vxmlbutton1a
variable string vxmlbutton2
variable string vxmlbutton2a
variable string vxmlbutton3
variable string vxmlbutton3a
variable string vxmlbutton4
variable string vxmlbutton4a
variable string vxmlbutton5
variable string vxmlbutton5a
variable string vxmlbutton6
variable string vxmlbutton6a
variable string vxmlbutton7
variable string vxmlbutton7a
variable string vxmlbutton8
variable string vxmlbutton8a
variable string vxmlbutton9
variable string vxmlbutton9a
variable string vxmlbutton10
variable string vxmlbutton10a
variable string vxmlbutton11
variable string vxmlbutton11a
variable string vxmlbutton12
variable string vxmlbutton12a
variable string vxmlbutton13
variable string vxmlbutton13a
variable string vxmlbutton14
variable string vxmlbutton14a
variable string vxmlbutton15
variable string vxmlbutton15a
variable string vxmlbutton16
variable string vxmlbutton16a
variable string vxmlbutton17
variable string vxmlbutton17a
variable string vxmlbutton18
variable string vxmlbutton18a
variable string vxmlbutton19
variable string vxmlbutton19a
variable string vxmlbutton20
variable string vxmlbutton20a
variable string vxmlbutton21
variable string vxmlbutton21a
variable string vxmlbutton22
variable string vxmlbutton22a
variable string vxmlbutton23
variable string vxmlbutton23a
variable string vxmlbutton24
variable string vxmlbutton24a
variable string vxmlbutton25
variable string vxmlbutton25a
variable string vxmlbutton26
variable string vxmlbutton26a
variable string vxmlbutton27
variable string vxmlbutton27a
variable string vxmlbutton28
variable string vxmlbutton28a
variable string vxmlbutton29
variable string vxmlbutton30
variable string vxmlbutton31
variable string vxmlbutton32
variable string vxmlbutton33
variable string vxmlbutton34
variable string vxmlbutton35
variable string vxmlbutton36
variable string vxmlbutton37
variable string vxmlbutton38
variable string vxmlbutton39
variable string vxmlbutton40
variable string vxmlbutton41
variable string vxmlbutton42
variable string vxmlbutton43
variable string vxmlbutton44
variable string vxmlbutton45
variable string vxmlbutton46
variable string vxmlbutton47
variable string vxmlbutton48
variable string vxmlbutton49
variable string vxmlbutton50
variable string vxmlbutton51
variable string vxmlbutton52
variable string vxmlbutton53
variable string vxmlbutton54
variable string vxmlbutton55
variable string vxmlbutton56
variable string vxmlbutton29a
variable string vxmlbutton30a
variable string vxmlbutton31a
variable string vxmlbutton32a
variable string vxmlbutton33a
variable string vxmlbutton34a
variable string vxmlbutton35a
variable string vxmlbutton36a
variable string vxmlbutton37a
variable string vxmlbutton38a
variable string vxmlbutton39a
variable string vxmlbutton40a
variable string vxmlbutton41a
variable string vxmlbutton42a
variable string vxmlbutton43a
variable string vxmlbutton44a
variable string vxmlbutton45a
variable string vxmlbutton46a
variable string vxmlbutton47a
variable string vxmlbutton48a
variable string vxmlbutton49a
variable string vxmlbutton50a
variable string vxmlbutton51a
variable string vxmlbutton52a
variable string vxmlbutton53a
variable string vxmlbutton54a
variable string vxmlbutton55a
variable string vxmlbutton56a


;***********************************************************************************************************************
;these are for setting whether a button is a toggled or not
;***********************************************************************************************************************

variable bool exmlbutton1
variable bool exmlbutton2
variable bool exmlbutton3
variable bool exmlbutton4
variable bool exmlbutton5
variable bool exmlbutton6
variable bool exmlbutton7
variable bool exmlbutton8
variable bool exmlbutton9
variable bool exmlbutton10
variable bool exmlbutton11
variable bool exmlbutton12
variable bool exmlbutton13
variable bool exmlbutton14
variable bool exmlbutton15
variable bool exmlbutton16
variable bool exmlbutton17
variable bool exmlbutton18
variable bool exmlbutton19
variable bool exmlbutton20
variable bool exmlbutton21
variable bool exmlbutton22
variable bool exmlbutton23
variable bool exmlbutton24
variable bool exmlbutton25
variable bool exmlbutton26
variable bool exmlbutton27
variable bool exmlbutton28
variable bool exmlbutton29
variable bool exmlbutton30
variable bool exmlbutton31
variable bool exmlbutton32
variable bool exmlbutton33
variable bool exmlbutton34
variable bool exmlbutton35
variable bool exmlbutton36
variable bool exmlbutton37
variable bool exmlbutton38
variable bool exmlbutton39
variable bool exmlbutton40
variable bool exmlbutton41
variable bool exmlbutton42
variable bool exmlbutton43
variable bool exmlbutton44
variable bool exmlbutton45
variable bool exmlbutton46
variable bool exmlbutton47
variable bool exmlbutton48
variable bool exmlbutton49
variable bool exmlbutton50
variable bool exmlbutton51
variable bool exmlbutton52
variable bool exmlbutton53
variable bool exmlbutton54
variable bool exmlbutton55
variable bool exmlbutton56

;***********************************************************************************************************************
;these are for buttontextcolors
;***********************************************************************************************************************

variable string yxmlcolor1
variable string yxmlcolor2
variable string yxmlcolor3
variable string yxmlcolor4
variable string yxmlcolor5
variable string yxmlcolor6
variable string yxmlcolor7
variable string yxmlcolor8
variable string yxmlcolor9
variable string yxmlcolor10
variable string yxmlcolor11
variable string yxmlcolor12
variable string yxmlcolor13
variable string yxmlcolor14
variable string yxmlcolor15
variable string yxmlcolor16
variable string yxmlcolor17
variable string yxmlcolor18
variable string yxmlcolor19
variable string yxmlcolor20
variable string yxmlcolor21
variable string yxmlcolor22
variable string yxmlcolor23
variable string yxmlcolor24
variable string yxmlcolor25
variable string yxmlcolor26
variable string yxmlcolor27
variable string yxmlcolor28
variable string yxmlcolor29
variable string yxmlcolor30
variable string yxmlcolor31
variable string yxmlcolor32
variable string yxmlcolor33
variable string yxmlcolor34
variable string yxmlcolor35
variable string yxmlcolor36
variable string yxmlcolor37
variable string yxmlcolor38
variable string yxmlcolor39
variable string yxmlcolor40
variable string yxmlcolor41
variable string yxmlcolor42
variable string yxmlcolor43
variable string yxmlcolor44
variable string yxmlcolor45
variable string yxmlcolor46
variable string yxmlcolor47
variable string yxmlcolor48
variable string yxmlcolor49
variable string yxmlcolor50
variable string yxmlcolor51
variable string yxmlcolor52
variable string yxmlcolor53
variable string yxmlcolor54
variable string yxmlcolor55
variable string yxmlcolor56
variable string zxmlcolor1
variable string zxmlcolor2
variable string zxmlcolor3
variable string zxmlcolor4
variable string zxmlcolor5
variable string zxmlcolor6
variable string zxmlcolor7
variable string zxmlcolor8
variable string zxmlcolor9
variable string zxmlcolor10
variable string zxmlcolor11
variable string zxmlcolor12
variable string zxmlcolor13
variable string zxmlcolor14
variable string zxmlcolor15
variable string zxmlcolor16
variable string zxmlcolor17
variable string zxmlcolor18
variable string zxmlcolor19
variable string zxmlcolor20
variable string zxmlcolor21
variable string zxmlcolor22
variable string zxmlcolor23
variable string zxmlcolor24
variable string zxmlcolor25
variable string zxmlcolor26
variable string zxmlcolor27
variable string zxmlcolor28
variable string zxmlcolor29
variable string zxmlcolor30
variable string zxmlcolor31
variable string zxmlcolor32
variable string zxmlcolor33
variable string zxmlcolor34
variable string zxmlcolor35
variable string zxmlcolor36
variable string zxmlcolor37
variable string zxmlcolor38
variable string zxmlcolor39
variable string zxmlcolor40
variable string zxmlcolor41
variable string zxmlcolor42
variable string zxmlcolor43
variable string zxmlcolor44
variable string zxmlcolor45
variable string zxmlcolor46
variable string zxmlcolor47
variable string zxmlcolor48
variable string zxmlcolor49
variable string zxmlcolor50
variable string zxmlcolor51
variable string zxmlcolor52
variable string zxmlcolor53
variable string zxmlcolor54
variable string zxmlcolor55
variable string zxmlcolor56

;***********************************************************************************************************************
;these are for toggle state functions
;***********************************************************************************************************************

variable bool Txmlbutton1=FALSE
variable bool Txmlbutton2=FALSE
variable bool Txmlbutton3=FALSE
variable bool Txmlbutton4=FALSE
variable bool Txmlbutton5=FALSE
variable bool Txmlbutton6=FALSE
variable bool Txmlbutton7=FALSE
variable bool Txmlbutton8=FALSE
variable bool Txmlbutton9=FALSE
variable bool Txmlbutton10=FALSE
variable bool Txmlbutton11=FALSE
variable bool Txmlbutton12=FALSE
variable bool Txmlbutton13=FALSE
variable bool Txmlbutton14=FALSE
variable bool Txmlbutton15=FALSE
variable bool Txmlbutton16=FALSE
variable bool Txmlbutton17=FALSE
variable bool Txmlbutton18=FALSE
variable bool Txmlbutton19=FALSE
variable bool Txmlbutton20=FALSE
variable bool Txmlbutton21=FALSE
variable bool Txmlbutton22=FALSE
variable bool Txmlbutton23=FALSE
variable bool Txmlbutton24=FALSE
variable bool Txmlbutton25=FALSE
variable bool Txmlbutton26=FALSE
variable bool Txmlbutton27=FALSE
variable bool Txmlbutton28=FALSE
variable bool Txmlbutton29=FALSE
variable bool Txmlbutton30=FALSE
variable bool Txmlbutton31=FALSE
variable bool Txmlbutton32=FALSE
variable bool Txmlbutton33=FALSE
variable bool Txmlbutton34=FALSE
variable bool Txmlbutton35=FALSE
variable bool Txmlbutton36=FALSE
variable bool Txmlbutton37=FALSE
variable bool Txmlbutton38=FALSE
variable bool Txmlbutton39=FALSE
variable bool Txmlbutton40=FALSE
variable bool Txmlbutton41=FALSE
variable bool Txmlbutton42=FALSE
variable bool Txmlbutton43=FALSE
variable bool Txmlbutton44=FALSE
variable bool Txmlbutton45=FALSE
variable bool Txmlbutton46=FALSE
variable bool Txmlbutton47=FALSE
variable bool Txmlbutton48=FALSE
variable bool Txmlbutton49=FALSE
variable bool Txmlbutton50=FALSE
variable bool Txmlbutton51=FALSE
variable bool Txmlbutton52=FALSE
variable bool Txmlbutton53=FALSE
variable bool Txmlbutton54=FALSE
variable bool Txmlbutton55=FALSE
variable bool Txmlbutton56=FALSE

;**********************************************************************************************************************************************
;Load Buttons set as a variable to shorten set commands
;**********************************************************************************************************************************************

variable settingsetref Buttons
variable settingsetref Ghost

;**********************************************************************************************************************************************
;Load UI and settings from config
;**********************************************************************************************************************************************

function main(string rollbackchk)
{
	if ${rollbackchk.Equal[rollback]}
	{
		call rollbackupdate
	}
	LavishSettings:AddSet[${MYSET}]
	LavishSettings[${MYSET}]:Clear
	LavishSettings[${MYSET}]:AddSet[Buttons]
	LavishSettings[${MYSET}]:AddSet[Ghost]	
	Buttons:Set[${LavishSettings[${MYSET}].FindSet[Buttons]}]
	Ghost:Set[${LavishSettings[${MYSET}].FindSet[Ghost]}]
	LavishSettings[${MYSET}]:Import["${MYCONFIGPATH}/eqisbuttonsconfig.xml"]
	uiversion:Set[${Buttons.FindSetting[uiversion,Landscape]}]
	if ${uiversion.Equal[Landscape]}
	{
	ui -reload "${MYUIPATH}/eqisbuttonsls.xml"
	execute bind shitbuilder CTRL+F9 run ./eq/shitbuilder
	call LoadSettings
	}
	if ${uiversion.Equal[Portrait]}
	{
	ui -reload "${MYUIPATH}/eqisbuttons.xml"
	execute bind shitbuilder CTRL+F9 run ./eq/shitbuilder
	call LoadSettings
	}
	if ${uiversion.Equal[Ghost]}
	{
	ui -reload "${MYUIPATH}/eqisghost1.xml"
	ui -reload "${MYUIPATH}/eqisghost2.xml"
	execute bind endui CTRL+F11 endscript eqisbuttons
	execute bind gxmlsetup CTRL+F12 UI -reload ./scripts/eq/ui/gxmluisettings.xml
	execute bind shitbuilder CTRL+F9 run ./eq/shitbuilder
	call LoadSettings
	}
	do
	{
		if !${QueuedCommands}
		WaitFrame
	    else
		ExecuteQueued
	}
	while 1
}

;***********************************************************************************************************************
;Loading settings via LavishSettings
;***********************************************************************************************************************

function LoadSettings()
{
	LavishSettings:AddSet[${MYSET}]
	LavishSettings[${MYSET}]:Clear
	LavishSettings[${MYSET}]:AddSet[Buttons]
	Buttons:Set[${LavishSettings[${MYSET}].FindSet[Buttons]}]
	LavishSettings[${MYSET}]:AddSet[Ghost]	
	Ghost:Set[${LavishSettings[${MYSET}].FindSet[Ghost]}]
	LavishSettings[${MYSET}]:Import["${MYCONFIGPATH}/eqisbuttonsconfig.xml"]
	mytexteditor:Set[${Buttons.FindSetting[mytexteditor,notepad.exe]}]
	myxloc1:Set[${Buttons.FindSetting[myxloc1,10%]}]
	myxloc2:Set[${Buttons.FindSetting[myxloc2,10%]}]
	myxloc3:Set[${Buttons.FindSetting[myxloc3,10%]}]
	myxloc4:Set[${Buttons.FindSetting[myxloc4,10%]}]
	myyloc1:Set[${Buttons.FindSetting[myyloc1,20%]}]
	myyloc2:Set[${Buttons.FindSetting[myyloc2,40%]}]
	myyloc3:Set[${Buttons.FindSetting[myyloc3,60%]}]
	myyloc4:Set[${Buttons.FindSetting[myyloc4,90%]}]
	myxsize1:Set[${Buttons.FindSetting[myxsize1,600]}]
	myxsize2:Set[${Buttons.FindSetting[myxsize2,600]}]
	myxsize3:Set[${Buttons.FindSetting[myxsize3,600]}]
	myxsize4:Set[${Buttons.FindSetting[myxsize4,600]}]
	myysize1:Set[${Buttons.FindSetting[myysize1,40]}]
	myysize2:Set[${Buttons.FindSetting[myysize2,40]}]
	myysize3:Set[${Buttons.FindSetting[myysize3,40]}]
	myysize4:Set[${Buttons.FindSetting[myysize4,40]}]
	mybuttonhide1:Set[${Buttons.FindSetting[mybuttonhide1,FALSE]}]
	mybuttonhide2:Set[${Buttons.FindSetting[mybuttonhide2,FALSE]}]
	mybuttonhide3:Set[${Buttons.FindSetting[mybuttonhide3,FALSE]}]
	mybuttonhide4:Set[${Buttons.FindSetting[mybuttonhide4,FALSE]}]
	mybuttonhide5:Set[${Buttons.FindSetting[mybuttonhide5,FALSE]}]
	mybuttonhide6:Set[${Buttons.FindSetting[mybuttonhide6,FALSE]}]
	mybuttonhide7:Set[${Buttons.FindSetting[mybuttonhide7,FALSE]}]
	mybuttonhide8:Set[${Buttons.FindSetting[mybuttonhide8,FALSE]}]
	mybuttonhide9:Set[${Buttons.FindSetting[mybuttonhide9,FALSE]}]
	mybuttonhide10:Set[${Buttons.FindSetting[mybuttonhide10,FALSE]}]
	mybuttonhide11:Set[${Buttons.FindSetting[mybuttonhide11,FALSE]}]
	mybuttonhide12:Set[${Buttons.FindSetting[mybuttonhide12,FALSE]}]
	mybuttonhide13:Set[${Buttons.FindSetting[mybuttonhide13,FALSE]}]
	mybuttonhide14:Set[${Buttons.FindSetting[mybuttonhide14,FALSE]}]
	mybuttonhide15:Set[${Buttons.FindSetting[mybuttonhide15,FALSE]}]
	mybuttonhide16:Set[${Buttons.FindSetting[mybuttonhide16,FALSE]}]
	mybuttonhide17:Set[${Buttons.FindSetting[mybuttonhide17,FALSE]}]
	mybuttonhide18:Set[${Buttons.FindSetting[mybuttonhide18,FALSE]}]
	mybuttonhide19:Set[${Buttons.FindSetting[mybuttonhide19,FALSE]}]
	mybuttonhide20:Set[${Buttons.FindSetting[mybuttonhide20,FALSE]}]
	mybuttonhide21:Set[${Buttons.FindSetting[mybuttonhide21,FALSE]}]
	mybuttonhide22:Set[${Buttons.FindSetting[mybuttonhide22,FALSE]}]
	mybuttonhide23:Set[${Buttons.FindSetting[mybuttonhide23,FALSE]}]
	mybuttonhide24:Set[${Buttons.FindSetting[mybuttonhide24,FALSE]}]
	mybuttonhide25:Set[${Buttons.FindSetting[mybuttonhide25,FALSE]}]
	mybuttonhide26:Set[${Buttons.FindSetting[mybuttonhide26,FALSE]}]
	mybuttonhide27:Set[${Buttons.FindSetting[mybuttonhide27,FALSE]}]
	mybuttonhide28:Set[${Buttons.FindSetting[mybuttonhide28,FALSE]}]
	mybuttonhide29:Set[${Buttons.FindSetting[mybuttonhide29,FALSE]}]
	mybuttonhide30:Set[${Buttons.FindSetting[mybuttonhide30,FALSE]}]
	mybuttonhide31:Set[${Buttons.FindSetting[mybuttonhide31,FALSE]}]
	mybuttonhide32:Set[${Buttons.FindSetting[mybuttonhide32,FALSE]}]
	mybuttonhide33:Set[${Buttons.FindSetting[mybuttonhide33,FALSE]}]
	mybuttonhide34:Set[${Buttons.FindSetting[mybuttonhide34,FALSE]}]
	mybuttonhide35:Set[${Buttons.FindSetting[mybuttonhide35,FALSE]}]
	mybuttonhide36:Set[${Buttons.FindSetting[mybuttonhide36,FALSE]}]
	mybuttonhide37:Set[${Buttons.FindSetting[mybuttonhide37,FALSE]}]
	mybuttonhide38:Set[${Buttons.FindSetting[mybuttonhide38,FALSE]}]
	mybuttonhide39:Set[${Buttons.FindSetting[mybuttonhide39,FALSE]}]
	mybuttonhide40:Set[${Buttons.FindSetting[mybuttonhide40,FALSE]}]
	mybuttonhide41:Set[${Buttons.FindSetting[mybuttonhide41,FALSE]}]
	mybuttonhide42:Set[${Buttons.FindSetting[mybuttonhide42,FALSE]}]
	mybuttonhide43:Set[${Buttons.FindSetting[mybuttonhide43,FALSE]}]
	mybuttonhide44:Set[${Buttons.FindSetting[mybuttonhide44,FALSE]}]
	mybuttonhide45:Set[${Buttons.FindSetting[mybuttonhide45,FALSE]}]
	mybuttonhide46:Set[${Buttons.FindSetting[mybuttonhide46,FALSE]}]
	mybuttonhide47:Set[${Buttons.FindSetting[mybuttonhide47,FALSE]}]
	mybuttonhide48:Set[${Buttons.FindSetting[mybuttonhide48,FALSE]}]
	mybuttonhide49:Set[${Buttons.FindSetting[mybuttonhide49,FALSE]}]
	mybuttonhide50:Set[${Buttons.FindSetting[mybuttonhide50,FALSE]}]
	mybuttonhide51:Set[${Buttons.FindSetting[mybuttonhide51,FALSE]}]
	mybuttonhide52:Set[${Buttons.FindSetting[mybuttonhide52,FALSE]}]
	mybuttonhide53:Set[${Buttons.FindSetting[mybuttonhide53,FALSE]}]
	mybuttonhide54:Set[${Buttons.FindSetting[mybuttonhide54,FALSE]}]
	mybuttonhide55:Set[${Buttons.FindSetting[mybuttonhide55,FALSE]}]
	mybuttonhide56:Set[${Buttons.FindSetting[mybuttonhide56,FALSE]}]
	mycolory1:Set[${Buttons.FindSetting[mycolory1,yxmlcolor1]}]
	mycolory2:Set[${Buttons.FindSetting[mycolory2,yxmlcolor2]}]
	mycolory3:Set[${Buttons.FindSetting[mycolory3,yxmlcolor3]}]
	mycolory4:Set[${Buttons.FindSetting[mycolory4,yxmlcolor4]}]
	mycolory5:Set[${Buttons.FindSetting[mycolory5,yxmlcolor5]}]
	mycolory6:Set[${Buttons.FindSetting[mycolory6,yxmlcolor6]}]
	mycolory7:Set[${Buttons.FindSetting[mycolory7,yxmlcolor7]}]
	mycolory8:Set[${Buttons.FindSetting[mycolory8,yxmlcolor8]}]
	mycolory9:Set[${Buttons.FindSetting[mycolory9,yxmlcolor9]}]
	mycolory10:Set[${Buttons.FindSetting[mycolory10,yxmlcolor10]}]
	mycolory11:Set[${Buttons.FindSetting[mycolory11,yxmlcolor11]}]
	mycolory12:Set[${Buttons.FindSetting[mycolory12,yxmlcolor12]}]
	mycolory13:Set[${Buttons.FindSetting[mycolory13,yxmlcolor13]}]
	mycolory14:Set[${Buttons.FindSetting[mycolory14,yxmlcolor14]}]
	mycolory15:Set[${Buttons.FindSetting[mycolory15,yxmlcolor15]}]
	mycolory16:Set[${Buttons.FindSetting[mycolory16,yxmlcolor16]}]
	mycolory17:Set[${Buttons.FindSetting[mycolory17,yxmlcolor17]}]
	mycolory18:Set[${Buttons.FindSetting[mycolory18,yxmlcolor18]}]
	mycolory19:Set[${Buttons.FindSetting[mycolory19,yxmlcolor19]}]
	mycolory20:Set[${Buttons.FindSetting[mycolory20,yxmlcolor20]}]
	mycolory21:Set[${Buttons.FindSetting[mycolory21,yxmlcolor21]}]
	mycolory22:Set[${Buttons.FindSetting[mycolory22,yxmlcolor22]}]
	mycolory23:Set[${Buttons.FindSetting[mycolory23,yxmlcolor23]}]
	mycolory24:Set[${Buttons.FindSetting[mycolory24,yxmlcolor24]}]
	mycolory25:Set[${Buttons.FindSetting[mycolory25,yxmlcolor25]}]
	mycolory26:Set[${Buttons.FindSetting[mycolory26,yxmlcolor26]}]
	mycolory27:Set[${Buttons.FindSetting[mycolory27,yxmlcolor27]}]
	mycolory28:Set[${Buttons.FindSetting[mycolory28,yxmlcolor28]}]
	mycolory29:Set[${Buttons.FindSetting[mycolory29,yxmlcolor29]}]
	mycolory30:Set[${Buttons.FindSetting[mycolory30,yxmlcolor30]}]
	mycolory31:Set[${Buttons.FindSetting[mycolory31,yxmlcolor31]}]
	mycolory32:Set[${Buttons.FindSetting[mycolory32,yxmlcolor32]}]
	mycolory33:Set[${Buttons.FindSetting[mycolory33,yxmlcolor33]}]
	mycolory34:Set[${Buttons.FindSetting[mycolory34,yxmlcolor34]}]
	mycolory35:Set[${Buttons.FindSetting[mycolory35,yxmlcolor35]}]
	mycolory36:Set[${Buttons.FindSetting[mycolory36,yxmlcolor36]}]
	mycolory37:Set[${Buttons.FindSetting[mycolory37,yxmlcolor37]}]
	mycolory38:Set[${Buttons.FindSetting[mycolory38,yxmlcolor38]}]
	mycolory39:Set[${Buttons.FindSetting[mycolory39,yxmlcolor39]}]
	mycolory40:Set[${Buttons.FindSetting[mycolory40,yxmlcolor40]}]
	mycolory41:Set[${Buttons.FindSetting[mycolory41,yxmlcolor41]}]
	mycolory42:Set[${Buttons.FindSetting[mycolory42,yxmlcolor42]}]
	mycolory43:Set[${Buttons.FindSetting[mycolory43,yxmlcolor43]}]
	mycolory44:Set[${Buttons.FindSetting[mycolory44,yxmlcolor44]}]
	mycolory45:Set[${Buttons.FindSetting[mycolory45,yxmlcolor45]}]
	mycolory46:Set[${Buttons.FindSetting[mycolory46,yxmlcolor46]}]
	mycolory47:Set[${Buttons.FindSetting[mycolory47,yxmlcolor47]}]
	mycolory48:Set[${Buttons.FindSetting[mycolory48,yxmlcolor48]}]
	mycolory49:Set[${Buttons.FindSetting[mycolory49,yxmlcolor49]}]
	mycolory50:Set[${Buttons.FindSetting[mycolory50,yxmlcolor50]}]
	mycolory51:Set[${Buttons.FindSetting[mycolory51,yxmlcolor51]}]
	mycolory52:Set[${Buttons.FindSetting[mycolory52,yxmlcolor52]}]
	mycolory53:Set[${Buttons.FindSetting[mycolory53,yxmlcolor53]}]
	mycolory54:Set[${Buttons.FindSetting[mycolory54,yxmlcolor54]}]
	mycolory55:Set[${Buttons.FindSetting[mycolory55,yxmlcolor55]}]
	mycolory56:Set[${Buttons.FindSetting[mycolory56,yxmlcolor56]}]
	mycolorz1:Set[${Buttons.FindSetting[mycolorz1,zxmlcolor1]}]
	mycolorz2:Set[${Buttons.FindSetting[mycolorz2,zxmlcolor2]}]
	mycolorz3:Set[${Buttons.FindSetting[mycolorz3,zxmlcolor3]}]
	mycolorz4:Set[${Buttons.FindSetting[mycolorz4,zxmlcolor4]}]
	mycolorz5:Set[${Buttons.FindSetting[mycolorz5,zxmlcolor5]}]
	mycolorz6:Set[${Buttons.FindSetting[mycolorz6,zxmlcolor6]}]
	mycolorz7:Set[${Buttons.FindSetting[mycolorz7,zxmlcolor7]}]
	mycolorz8:Set[${Buttons.FindSetting[mycolorz8,zxmlcolor8]}]
	mycolorz9:Set[${Buttons.FindSetting[mycolorz9,zxmlcolor9]}]
	mycolorz10:Set[${Buttons.FindSetting[mycolorz10,zxmlcolor10]}]
	mycolorz11:Set[${Buttons.FindSetting[mycolorz11,zxmlcolor11]}]
	mycolorz12:Set[${Buttons.FindSetting[mycolorz12,zxmlcolor12]}]
	mycolorz13:Set[${Buttons.FindSetting[mycolorz13,zxmlcolor13]}]
	mycolorz14:Set[${Buttons.FindSetting[mycolorz14,zxmlcolor14]}]
	mycolorz15:Set[${Buttons.FindSetting[mycolorz15,zxmlcolor15]}]
	mycolorz16:Set[${Buttons.FindSetting[mycolorz16,zxmlcolor16]}]
	mycolorz17:Set[${Buttons.FindSetting[mycolorz17,zxmlcolor17]}]
	mycolorz18:Set[${Buttons.FindSetting[mycolorz18,zxmlcolor18]}]
	mycolorz19:Set[${Buttons.FindSetting[mycolorz19,zxmlcolor19]}]
	mycolorz20:Set[${Buttons.FindSetting[mycolorz20,zxmlcolor20]}]
	mycolorz21:Set[${Buttons.FindSetting[mycolorz21,zxmlcolor21]}]
	mycolorz22:Set[${Buttons.FindSetting[mycolorz22,zxmlcolor22]}]
	mycolorz23:Set[${Buttons.FindSetting[mycolorz23,zxmlcolor23]}]
	mycolorz24:Set[${Buttons.FindSetting[mycolorz24,zxmlcolor24]}]
	mycolorz25:Set[${Buttons.FindSetting[mycolorz25,zxmlcolor25]}]
	mycolorz26:Set[${Buttons.FindSetting[mycolorz26,zxmlcolor26]}]
	mycolorz27:Set[${Buttons.FindSetting[mycolorz27,zxmlcolor27]}]
	mycolorz28:Set[${Buttons.FindSetting[mycolorz28,zxmlcolor28]}]
	mycolorz29:Set[${Buttons.FindSetting[mycolorz29,zxmlcolor29]}]
	mycolorz30:Set[${Buttons.FindSetting[mycolorz30,zxmlcolor30]}]
	mycolorz31:Set[${Buttons.FindSetting[mycolorz31,zxmlcolor31]}]
	mycolorz32:Set[${Buttons.FindSetting[mycolorz32,zxmlcolor32]}]
	mycolorz33:Set[${Buttons.FindSetting[mycolorz33,zxmlcolor33]}]
	mycolorz34:Set[${Buttons.FindSetting[mycolorz34,zxmlcolor34]}]
	mycolorz35:Set[${Buttons.FindSetting[mycolorz35,zxmlcolor35]}]
	mycolorz36:Set[${Buttons.FindSetting[mycolorz36,zxmlcolor36]}]
	mycolorz37:Set[${Buttons.FindSetting[mycolorz37,zxmlcolor37]}]
	mycolorz38:Set[${Buttons.FindSetting[mycolorz38,zxmlcolor38]}]
	mycolorz39:Set[${Buttons.FindSetting[mycolorz39,zxmlcolor39]}]
	mycolorz40:Set[${Buttons.FindSetting[mycolorz40,zxmlcolor40]}]
	mycolorz41:Set[${Buttons.FindSetting[mycolorz41,zxmlcolor41]}]
	mycolorz42:Set[${Buttons.FindSetting[mycolorz42,zxmlcolor42]}]
	mycolorz43:Set[${Buttons.FindSetting[mycolorz43,zxmlcolor43]}]
	mycolorz44:Set[${Buttons.FindSetting[mycolorz44,zxmlcolor44]}]
	mycolorz45:Set[${Buttons.FindSetting[mycolorz45,zxmlcolor45]}]
	mycolorz46:Set[${Buttons.FindSetting[mycolorz46,zxmlcolor46]}]
	mycolorz47:Set[${Buttons.FindSetting[mycolorz47,zxmlcolor47]}]
	mycolorz48:Set[${Buttons.FindSetting[mycolorz48,zxmlcolor48]}]
	mycolorz49:Set[${Buttons.FindSetting[mycolorz49,zxmlcolor49]}]
	mycolorz50:Set[${Buttons.FindSetting[mycolorz50,zxmlcolor50]}]
	mycolorz51:Set[${Buttons.FindSetting[mycolorz51,zxmlcolor51]}]
	mycolorz52:Set[${Buttons.FindSetting[mycolorz52,zxmlcolor52]}]
	mycolorz53:Set[${Buttons.FindSetting[mycolorz53,zxmlcolor53]}]
	mycolorz54:Set[${Buttons.FindSetting[mycolorz54,zxmlcolor54]}]
	mycolorz55:Set[${Buttons.FindSetting[mycolorz55,zxmlcolor55]}]
	mycolorz56:Set[${Buttons.FindSetting[mycolorz56,zxmlcolor56]}]
	mylabel1text1:Set[${Buttons.FindSetting[mylabel1text1,xmlbuttontext1]}]
	mylabel1text2:Set[${Buttons.FindSetting[mylabel1text2,xmlbuttontext2]}]
	mylabel1text3:Set[${Buttons.FindSetting[mylabel1text3,xmlbuttontext3]}]
	mylabel1text4:Set[${Buttons.FindSetting[mylabel1text4,xmlbuttontext4]}]
	mylabel1text5:Set[${Buttons.FindSetting[mylabel1text5,xmlbuttontext5]}]
	mylabel1text6:Set[${Buttons.FindSetting[mylabel1text6,xmlbuttontext6]}]
	mylabel1text7:Set[${Buttons.FindSetting[mylabel1text7,xmlbuttontext7]}]
	mylabel1text8:Set[${Buttons.FindSetting[mylabel1text8,xmlbuttontext8]}]
	mylabel1text9:Set[${Buttons.FindSetting[mylabel1text9,xmlbuttontext9]}]
	mylabel1text10:Set[${Buttons.FindSetting[mylabel1text10,xmlbuttontext10]}]
	mylabel1text11:Set[${Buttons.FindSetting[mylabel1text11,xmlbuttontext11]}]
	mylabel1text12:Set[${Buttons.FindSetting[mylabel1text12,xmlbuttontext12]}]
	mylabel1text13:Set[${Buttons.FindSetting[mylabel1text13,xmlbuttontext13]}]
	mylabel1text14:Set[${Buttons.FindSetting[mylabel1text14,xmlbuttontext14]}]
	mylabel1text15:Set[${Buttons.FindSetting[mylabel1text15,xmlbuttontext15]}]
	mylabel1text16:Set[${Buttons.FindSetting[mylabel1text16,xmlbuttontext16]}]
	mylabel1text17:Set[${Buttons.FindSetting[mylabel1text17,xmlbuttontext17]}]
	mylabel1text18:Set[${Buttons.FindSetting[mylabel1text18,xmlbuttontext18]}]
	mylabel1text19:Set[${Buttons.FindSetting[mylabel1text19,xmlbuttontext19]}]
	mylabel1text20:Set[${Buttons.FindSetting[mylabel1text20,xmlbuttontext20]}]
	mylabel1text21:Set[${Buttons.FindSetting[mylabel1text21,xmlbuttontext21]}]
	mylabel1text22:Set[${Buttons.FindSetting[mylabel1text22,xmlbuttontext22]}]
	mylabel1text23:Set[${Buttons.FindSetting[mylabel1text23,xmlbuttontext23]}]
	mylabel1text24:Set[${Buttons.FindSetting[mylabel1text24,xmlbuttontext24]}]
	mylabel1text25:Set[${Buttons.FindSetting[mylabel1text25,xmlbuttontext25]}]
	mylabel1text26:Set[${Buttons.FindSetting[mylabel1text26,xmlbuttontext26]}]
	mylabel1text27:Set[${Buttons.FindSetting[mylabel1text27,xmlbuttontext27]}]
	mylabel1text28:Set[${Buttons.FindSetting[mylabel1text28,xmlbuttontext28]}]
	mylabel1text29:Set[${Buttons.FindSetting[mylabel1text29,xmlbuttontext29]}]
	mylabel1text30:Set[${Buttons.FindSetting[mylabel1text30,xmlbuttontext30]}]
	mylabel1text31:Set[${Buttons.FindSetting[mylabel1text31,xmlbuttontext31]}]
	mylabel1text32:Set[${Buttons.FindSetting[mylabel1text32,xmlbuttontext32]}]
	mylabel1text33:Set[${Buttons.FindSetting[mylabel1text33,xmlbuttontext33]}]
	mylabel1text34:Set[${Buttons.FindSetting[mylabel1text34,xmlbuttontext34]}]
	mylabel1text35:Set[${Buttons.FindSetting[mylabel1text35,xmlbuttontext35]}]
	mylabel1text36:Set[${Buttons.FindSetting[mylabel1text36,xmlbuttontext36]}]
	mylabel1text37:Set[${Buttons.FindSetting[mylabel1text37,xmlbuttontext37]}]
	mylabel1text38:Set[${Buttons.FindSetting[mylabel1text38,xmlbuttontext38]}]
	mylabel1text39:Set[${Buttons.FindSetting[mylabel1text39,xmlbuttontext39]}]
	mylabel1text40:Set[${Buttons.FindSetting[mylabel1text40,xmlbuttontext40]}]
	mylabel1text41:Set[${Buttons.FindSetting[mylabel1text41,xmlbuttontext41]}]
	mylabel1text42:Set[${Buttons.FindSetting[mylabel1text42,xmlbuttontext42]}]
	mylabel1text43:Set[${Buttons.FindSetting[mylabel1text43,xmlbuttontext43]}]
	mylabel1text44:Set[${Buttons.FindSetting[mylabel1text44,xmlbuttontext44]}]
	mylabel1text45:Set[${Buttons.FindSetting[mylabel1text45,xmlbuttontext45]}]
	mylabel1text46:Set[${Buttons.FindSetting[mylabel1text46,xmlbuttontext46]}]
	mylabel1text47:Set[${Buttons.FindSetting[mylabel1text47,xmlbuttontext47]}]
	mylabel1text48:Set[${Buttons.FindSetting[mylabel1text48,xmlbuttontext48]}]
	mylabel1text49:Set[${Buttons.FindSetting[mylabel1text49,xmlbuttontext49]}]
	mylabel1text50:Set[${Buttons.FindSetting[mylabel1text50,xmlbuttontext50]}]
	mylabel1text51:Set[${Buttons.FindSetting[mylabel1text51,xmlbuttontext51]}]
	mylabel1text52:Set[${Buttons.FindSetting[mylabel1text52,xmlbuttontext52]}]
	mylabel1text53:Set[${Buttons.FindSetting[mylabel1text53,xmlbuttontext53]}]
	mylabel1text54:Set[${Buttons.FindSetting[mylabel1text54,xmlbuttontext54]}]
	mylabel1text55:Set[${Buttons.FindSetting[mylabel1text55,xmlbuttontext55]}]
	mylabel1text56:Set[${Buttons.FindSetting[mylabel1text56,xmlbuttontext56]}]
	mylabel2text1:Set[${Buttons.FindSetting[mylabel2text1,xmlbuttontext1a]}]
	mylabel2text2:Set[${Buttons.FindSetting[mylabel2text2,xmlbuttontext2a]}]
	mylabel2text3:Set[${Buttons.FindSetting[mylabel2text3,xmlbuttontext3a]}]
	mylabel2text4:Set[${Buttons.FindSetting[mylabel2text4,xmlbuttontext4a]}]
	mylabel2text5:Set[${Buttons.FindSetting[mylabel2text5,xmlbuttontext5a]}]
	mylabel2text6:Set[${Buttons.FindSetting[mylabel2text6,xmlbuttontext6a]}]
	mylabel2text7:Set[${Buttons.FindSetting[mylabel2text7,xmlbuttontext7a]}]
	mylabel2text8:Set[${Buttons.FindSetting[mylabel2text8,xmlbuttontext8a]}]
	mylabel2text9:Set[${Buttons.FindSetting[mylabel2text9,xmlbuttontext9a]}]
	mylabel2text10:Set[${Buttons.FindSetting[mylabel2text10,xmlbuttontext10a]}]
	mylabel2text11:Set[${Buttons.FindSetting[mylabel2text11,xmlbuttontext11a]}]
	mylabel2text12:Set[${Buttons.FindSetting[mylabel2text12,xmlbuttontext12a]}]
	mylabel2text13:Set[${Buttons.FindSetting[mylabel2text13,xmlbuttontext13a]}]
	mylabel2text14:Set[${Buttons.FindSetting[mylabel2text14,xmlbuttontext14a]}]
	mylabel2text15:Set[${Buttons.FindSetting[mylabel2text15,xmlbuttontext15a]}]
	mylabel2text16:Set[${Buttons.FindSetting[mylabel2text16,xmlbuttontext16a]}]
	mylabel2text17:Set[${Buttons.FindSetting[mylabel2text17,xmlbuttontext17a]}]
	mylabel2text18:Set[${Buttons.FindSetting[mylabel2text18,xmlbuttontext18a]}]
	mylabel2text19:Set[${Buttons.FindSetting[mylabel2text19,xmlbuttontext19a]}]
	mylabel2text20:Set[${Buttons.FindSetting[mylabel2text20,xmlbuttontext20a]}]
	mylabel2text21:Set[${Buttons.FindSetting[mylabel2text21,xmlbuttontext21a]}]
	mylabel2text22:Set[${Buttons.FindSetting[mylabel2text22,xmlbuttontext22a]}]
	mylabel2text23:Set[${Buttons.FindSetting[mylabel2text23,xmlbuttontext23a]}]
	mylabel2text24:Set[${Buttons.FindSetting[mylabel2text24,xmlbuttontext24a]}]
	mylabel2text25:Set[${Buttons.FindSetting[mylabel2text25,xmlbuttontext25a]}]
	mylabel2text26:Set[${Buttons.FindSetting[mylabel2text26,xmlbuttontext26a]}]
	mylabel2text27:Set[${Buttons.FindSetting[mylabel2text27,xmlbuttontext27a]}]
	mylabel2text28:Set[${Buttons.FindSetting[mylabel2text28,xmlbuttontext28a]}]
	mylabel2text29:Set[${Buttons.FindSetting[mylabel2text29,xmlbuttontext29a]}]
	mylabel2text30:Set[${Buttons.FindSetting[mylabel2text30,xmlbuttontext30a]}]
	mylabel2text31:Set[${Buttons.FindSetting[mylabel2text31,xmlbuttontext31a]}]
	mylabel2text32:Set[${Buttons.FindSetting[mylabel2text32,xmlbuttontext32a]}]
	mylabel2text33:Set[${Buttons.FindSetting[mylabel2text33,xmlbuttontext33a]}]
	mylabel2text34:Set[${Buttons.FindSetting[mylabel2text34,xmlbuttontext34a]}]
	mylabel2text35:Set[${Buttons.FindSetting[mylabel2text35,xmlbuttontext35a]}]
	mylabel2text36:Set[${Buttons.FindSetting[mylabel2text36,xmlbuttontext36a]}]
	mylabel2text37:Set[${Buttons.FindSetting[mylabel2text37,xmlbuttontext37a]}]
	mylabel2text38:Set[${Buttons.FindSetting[mylabel2text38,xmlbuttontext38a]}]
	mylabel2text39:Set[${Buttons.FindSetting[mylabel2text39,xmlbuttontext39a]}]
	mylabel2text40:Set[${Buttons.FindSetting[mylabel2text40,xmlbuttontext40a]}]
	mylabel2text41:Set[${Buttons.FindSetting[mylabel2text41,xmlbuttontext41a]}]
	mylabel2text42:Set[${Buttons.FindSetting[mylabel2text42,xmlbuttontext42a]}]
	mylabel2text43:Set[${Buttons.FindSetting[mylabel2text43,xmlbuttontext43a]}]
	mylabel2text44:Set[${Buttons.FindSetting[mylabel2text44,xmlbuttontext44a]}]
	mylabel2text45:Set[${Buttons.FindSetting[mylabel2text45,xmlbuttontext45a]}]
	mylabel2text46:Set[${Buttons.FindSetting[mylabel2text46,xmlbuttontext46a]}]
	mylabel2text47:Set[${Buttons.FindSetting[mylabel2text47,xmlbuttontext47a]}]
	mylabel2text48:Set[${Buttons.FindSetting[mylabel2text48,xmlbuttontext48a]}]
	mylabel2text49:Set[${Buttons.FindSetting[mylabel2text49,xmlbuttontext49a]}]
	mylabel2text50:Set[${Buttons.FindSetting[mylabel2text50,xmlbuttontext50a]}]
	mylabel2text51:Set[${Buttons.FindSetting[mylabel2text51,xmlbuttontext51a]}]
	mylabel2text52:Set[${Buttons.FindSetting[mylabel2text52,xmlbuttontext52a]}]
	mylabel2text53:Set[${Buttons.FindSetting[mylabel2text53,xmlbuttontext53a]}]
	mylabel2text54:Set[${Buttons.FindSetting[mylabel2text54,xmlbuttontext54a]}]
	mylabel2text55:Set[${Buttons.FindSetting[mylabel2text55,xmlbuttontext55a]}]
	mylabel2text56:Set[${Buttons.FindSetting[mylabel2text56,xmlbuttontext56a]}]
	mypress1action1:Set[${Buttons.FindSetting[mypress1action1,No command entered]}]
	mypress1action2:Set[${Buttons.FindSetting[mypress1action2,No command entered]}]
	mypress1action3:Set[${Buttons.FindSetting[mypress1action3,No command entered]}]
	mypress1action4:Set[${Buttons.FindSetting[mypress1action4,No command entered]}]
	mypress1action5:Set[${Buttons.FindSetting[mypress1action5,No command entered]}]
	mypress1action6:Set[${Buttons.FindSetting[mypress1action6,No command entered]}]
	mypress1action7:Set[${Buttons.FindSetting[mypress1action7,No command entered]}]
	mypress1action8:Set[${Buttons.FindSetting[mypress1action8,No command entered]}]
	mypress1action9:Set[${Buttons.FindSetting[mypress1action9,No command entered]}]
	mypress1action10:Set[${Buttons.FindSetting[mypress1action10,No command entered]}]
	mypress1action11:Set[${Buttons.FindSetting[mypress1action11,No command entered]}]
	mypress1action12:Set[${Buttons.FindSetting[mypress1action12,No command entered]}]
	mypress1action13:Set[${Buttons.FindSetting[mypress1action13,No command entered]}]
	mypress1action14:Set[${Buttons.FindSetting[mypress1action14,No command entered]}]
	mypress1action15:Set[${Buttons.FindSetting[mypress1action15,No command entered]}]
	mypress1action16:Set[${Buttons.FindSetting[mypress1action16,No command entered]}]
	mypress1action17:Set[${Buttons.FindSetting[mypress1action17,No command entered]}]
	mypress1action18:Set[${Buttons.FindSetting[mypress1action18,No command entered]}]
	mypress1action19:Set[${Buttons.FindSetting[mypress1action19,No command entered]}]
	mypress1action20:Set[${Buttons.FindSetting[mypress1action20,No command entered]}]
	mypress1action21:Set[${Buttons.FindSetting[mypress1action21,No command entered]}]
	mypress1action22:Set[${Buttons.FindSetting[mypress1action22,No command entered]}]
	mypress1action23:Set[${Buttons.FindSetting[mypress1action23,No command entered]}]
	mypress1action24:Set[${Buttons.FindSetting[mypress1action24,No command entered]}]
	mypress1action25:Set[${Buttons.FindSetting[mypress1action25,No command entered]}]
	mypress1action26:Set[${Buttons.FindSetting[mypress1action26,No command entered]}]
	mypress1action27:Set[${Buttons.FindSetting[mypress1action27,No command entered]}]
	mypress1action28:Set[${Buttons.FindSetting[mypress1action28,No command entered]}]
	mypress1action29:Set[${Buttons.FindSetting[mypress1action29,No command entered]}]
	mypress1action30:Set[${Buttons.FindSetting[mypress1action30,No command entered]}]
	mypress1action31:Set[${Buttons.FindSetting[mypress1action31,No command entered]}]
	mypress1action32:Set[${Buttons.FindSetting[mypress1action32,No command entered]}]
	mypress1action33:Set[${Buttons.FindSetting[mypress1action33,No command entered]}]
	mypress1action34:Set[${Buttons.FindSetting[mypress1action34,No command entered]}]
	mypress1action35:Set[${Buttons.FindSetting[mypress1action35,No command entered]}]
	mypress1action36:Set[${Buttons.FindSetting[mypress1action36,No command entered]}]
	mypress1action37:Set[${Buttons.FindSetting[mypress1action37,No command entered]}]
	mypress1action38:Set[${Buttons.FindSetting[mypress1action38,No command entered]}]
	mypress1action39:Set[${Buttons.FindSetting[mypress1action39,No command entered]}]
	mypress1action40:Set[${Buttons.FindSetting[mypress1action40,No command entered]}]
	mypress1action41:Set[${Buttons.FindSetting[mypress1action41,No command entered]}]
	mypress1action42:Set[${Buttons.FindSetting[mypress1action42,No command entered]}]
	mypress1action43:Set[${Buttons.FindSetting[mypress1action43,No command entered]}]
	mypress1action44:Set[${Buttons.FindSetting[mypress1action44,No command entered]}]
	mypress1action45:Set[${Buttons.FindSetting[mypress1action45,No command entered]}]
	mypress1action46:Set[${Buttons.FindSetting[mypress1action46,No command entered]}]
	mypress1action47:Set[${Buttons.FindSetting[mypress1action47,No command entered]}]
	mypress1action48:Set[${Buttons.FindSetting[mypress1action48,No command entered]}]
	mypress1action49:Set[${Buttons.FindSetting[mypress1action49,No command entered]}]
	mypress1action50:Set[${Buttons.FindSetting[mypress1action50,No command entered]}]
	mypress1action51:Set[${Buttons.FindSetting[mypress1action51,No command entered]}]
	mypress1action52:Set[${Buttons.FindSetting[mypress1action52,No command entered]}]
	mypress1action53:Set[${Buttons.FindSetting[mypress1action53,No command entered]}]
	mypress1action54:Set[${Buttons.FindSetting[mypress1action54,No command entered]}]
	mypress1action55:Set[${Buttons.FindSetting[mypress1action55,No command entered]}]
	mypress1action56:Set[${Buttons.FindSetting[mypress1action56,No command entered]}]
	mypress2action1:Set[${Buttons.FindSetting[mypress2action1,No command entered]}]
	mypress2action2:Set[${Buttons.FindSetting[mypress2action2,No command entered]}]
	mypress2action3:Set[${Buttons.FindSetting[mypress2action3,No command entered]}]
	mypress2action4:Set[${Buttons.FindSetting[mypress2action4,No command entered]}]
	mypress2action5:Set[${Buttons.FindSetting[mypress2action5,No command entered]}]
	mypress2action6:Set[${Buttons.FindSetting[mypress2action6,No command entered]}]
	mypress2action7:Set[${Buttons.FindSetting[mypress2action7,No command entered]}]
	mypress2action8:Set[${Buttons.FindSetting[mypress2action8,No command entered]}]
	mypress2action9:Set[${Buttons.FindSetting[mypress2action9,No command entered]}]
	mypress2action10:Set[${Buttons.FindSetting[mypress2action10No command entered,]}]
	mypress2action11:Set[${Buttons.FindSetting[mypress2action11,No command entered]}]
	mypress2action12:Set[${Buttons.FindSetting[mypress2action12,No command entered]}]
	mypress2action13:Set[${Buttons.FindSetting[mypress2action13,No command entered]}]
	mypress2action14:Set[${Buttons.FindSetting[mypress2action14,No command entered]}]
	mypress2action15:Set[${Buttons.FindSetting[mypress2action15,No command entered]}]
	mypress2action16:Set[${Buttons.FindSetting[mypress2action16,No command entered]}]
	mypress2action17:Set[${Buttons.FindSetting[mypress2action17,No command entered]}]
	mypress2action18:Set[${Buttons.FindSetting[mypress2action18,No command entered]}]
	mypress2action19:Set[${Buttons.FindSetting[mypress2action19,No command entered]}]
	mypress2action20:Set[${Buttons.FindSetting[mypress2action20,No command entered]}]
	mypress2action21:Set[${Buttons.FindSetting[mypress2action21,No command entered]}]
	mypress2action22:Set[${Buttons.FindSetting[mypress2action22,No command entered]}]
	mypress2action23:Set[${Buttons.FindSetting[mypress2action23,No command entered]}]
	mypress2action24:Set[${Buttons.FindSetting[mypress2action24,No command entered]}]
	mypress2action25:Set[${Buttons.FindSetting[mypress2action25,No command entered]}]
	mypress2action26:Set[${Buttons.FindSetting[mypress2action26,No command entered]}]
	mypress2action27:Set[${Buttons.FindSetting[mypress2action27,No command entered]}]
	mypress2action28:Set[${Buttons.FindSetting[mypress2action28,No command entered]}]
	mypress2action29:Set[${Buttons.FindSetting[mypress2action29,No command entered]}]
	mypress2action30:Set[${Buttons.FindSetting[mypress2action30,No command entered]}]
	mypress2action31:Set[${Buttons.FindSetting[mypress2action31,No command entered]}]
	mypress2action32:Set[${Buttons.FindSetting[mypress2action32,No command entered]}]
	mypress2action33:Set[${Buttons.FindSetting[mypress2action33,No command entered]}]
	mypress2action34:Set[${Buttons.FindSetting[mypress2action34,No command entered]}]
	mypress2action35:Set[${Buttons.FindSetting[mypress2action35,No command entered]}]
	mypress2action36:Set[${Buttons.FindSetting[mypress2action36,No command entered]}]
	mypress2action37:Set[${Buttons.FindSetting[mypress2action37,No command entered]}]
	mypress2action38:Set[${Buttons.FindSetting[mypress2action38,No command entered]}]
	mypress2action39:Set[${Buttons.FindSetting[mypress2action39,No command entered]}]
	mypress2action40:Set[${Buttons.FindSetting[mypress2action40,No command entered]}]
	mypress2action41:Set[${Buttons.FindSetting[mypress2action41,No command entered]}]
	mypress2action42:Set[${Buttons.FindSetting[mypress2action42,No command entered]}]
	mypress2action43:Set[${Buttons.FindSetting[mypress2action43,No command entered]}]
	mypress2action44:Set[${Buttons.FindSetting[mypress2action44,No command entered]}]
	mypress2action45:Set[${Buttons.FindSetting[mypress2action45,No command entered]}]
	mypress2action46:Set[${Buttons.FindSetting[mypress2action46,No command entered]}]
	mypress2action47:Set[${Buttons.FindSetting[mypress2action47,No command entered]}]
	mypress2action48:Set[${Buttons.FindSetting[mypress2action48,No command entered]}]
	mypress2action49:Set[${Buttons.FindSetting[mypress2action49,No command entered]}]
	mypress2action50:Set[${Buttons.FindSetting[mypress2action50,No command entered]}]
	mypress2action51:Set[${Buttons.FindSetting[mypress2action51,No command entered]}]
	mypress2action52:Set[${Buttons.FindSetting[mypress2action52,No command entered]}]
	mypress2action53:Set[${Buttons.FindSetting[mypress2action53,No command entered]}]
	mypress2action54:Set[${Buttons.FindSetting[mypress2action54,No command entered]}]
	mypress2action55:Set[${Buttons.FindSetting[mypress2action55,No command entered]}]
	mypress2action56:Set[${Buttons.FindSetting[mypress2action56,No command entered]}]

;***********************************************************************************************************************
;Set portrait/landscape and Window Height/Width from saved settings
;***********************************************************************************************************************

	xmlfontheight:Set[${Buttons.FindSetting[xmlfontheight,14]}]
	uiversion:Set[${Buttons.FindSetting[uiversion,Landscape]}]
	
;***********************************************************************************************************************
;Set custom tab labels
;***********************************************************************************************************************

	xmltab1:Set[${Buttons.FindSetting[xmltab1,Tab 1]}]
	xmltab2:Set[${Buttons.FindSetting[xmltab2,Tab 2]}]
	xmltab3:Set[${Buttons.FindSetting[xmltab3,Tab 3]}]
	xmltab4:Set[${Buttons.FindSetting[xmltab4,Tab 4]}]	
	
;***********************************************************************************************************************
;Set custom button text colors
;***********************************************************************************************************************
		
	yxmlcolor1:Set[${Buttons.FindSetting[yxmlcolor1,FF000000]}]
	yxmlcolor2:Set[${Buttons.FindSetting[yxmlcolor2,FF000000]}]
	yxmlcolor3:Set[${Buttons.FindSetting[yxmlcolor3,FF000000]}]
	yxmlcolor4:Set[${Buttons.FindSetting[yxmlcolor4,FF000000]}]
	yxmlcolor5:Set[${Buttons.FindSetting[yxmlcolor5,FF000000]}]
	yxmlcolor6:Set[${Buttons.FindSetting[yxmlcolor6,FF000000]}]
	yxmlcolor7:Set[${Buttons.FindSetting[yxmlcolor7,FF000000]}]
	yxmlcolor8:Set[${Buttons.FindSetting[yxmlcolor8,FF000000]}]
	yxmlcolor9:Set[${Buttons.FindSetting[yxmlcolor9,FF000000]}]
	yxmlcolor10:Set[${Buttons.FindSetting[yxmlcolor10,FF000000]}]
	yxmlcolor11:Set[${Buttons.FindSetting[yxmlcolor11,FF000000]}]
	yxmlcolor12:Set[${Buttons.FindSetting[yxmlcolor12,FF000000]}]
	yxmlcolor13:Set[${Buttons.FindSetting[yxmlcolor13,FF000000]}]
	yxmlcolor14:Set[${Buttons.FindSetting[yxmlcolor14,FF000000]}]
	yxmlcolor15:Set[${Buttons.FindSetting[yxmlcolor15,FF000000]}]
	yxmlcolor16:Set[${Buttons.FindSetting[yxmlcolor16,FF000000]}]
	yxmlcolor17:Set[${Buttons.FindSetting[yxmlcolor17,FF000000]}]
	yxmlcolor18:Set[${Buttons.FindSetting[yxmlcolor18,FF000000]}]
	yxmlcolor19:Set[${Buttons.FindSetting[yxmlcolor19,FF000000]}]
	yxmlcolor20:Set[${Buttons.FindSetting[yxmlcolor20,FF000000]}]
	yxmlcolor21:Set[${Buttons.FindSetting[yxmlcolor21,FF000000]}]
	yxmlcolor22:Set[${Buttons.FindSetting[yxmlcolor22,FF000000]}]
	yxmlcolor23:Set[${Buttons.FindSetting[yxmlcolor23,FF000000]}]
	yxmlcolor24:Set[${Buttons.FindSetting[yxmlcolor24,FF000000]}]
	yxmlcolor25:Set[${Buttons.FindSetting[yxmlcolor25,FF000000]}]
	yxmlcolor26:Set[${Buttons.FindSetting[yxmlcolor26,FF000000]}]
	yxmlcolor27:Set[${Buttons.FindSetting[yxmlcolor27,FF000000]}]
	yxmlcolor28:Set[${Buttons.FindSetting[yxmlcolor28,FF000000]}]
	yxmlcolor29:Set[${Buttons.FindSetting[yxmlcolor29,FF000000]}]
	yxmlcolor30:Set[${Buttons.FindSetting[yxmlcolor30,FF000000]}]
	yxmlcolor31:Set[${Buttons.FindSetting[yxmlcolor31,FF000000]}]
	yxmlcolor32:Set[${Buttons.FindSetting[yxmlcolor32,FF000000]}]
	yxmlcolor33:Set[${Buttons.FindSetting[yxmlcolor33,FF000000]}]
	yxmlcolor34:Set[${Buttons.FindSetting[yxmlcolor34,FF000000]}]
	yxmlcolor35:Set[${Buttons.FindSetting[yxmlcolor35,FF000000]}]
	yxmlcolor36:Set[${Buttons.FindSetting[yxmlcolor36,FF000000]}]
	yxmlcolor37:Set[${Buttons.FindSetting[yxmlcolor37,FF000000]}]
	yxmlcolor38:Set[${Buttons.FindSetting[yxmlcolor38,FF000000]}]
	yxmlcolor39:Set[${Buttons.FindSetting[yxmlcolor39,FF000000]}]
	yxmlcolor40:Set[${Buttons.FindSetting[yxmlcolor40,FF000000]}]
	yxmlcolor41:Set[${Buttons.FindSetting[yxmlcolor41,FF000000]}]
	yxmlcolor42:Set[${Buttons.FindSetting[yxmlcolor42,FF000000]}]
	yxmlcolor43:Set[${Buttons.FindSetting[yxmlcolor43,FF000000]}]
	yxmlcolor44:Set[${Buttons.FindSetting[yxmlcolor44,FF000000]}]
	yxmlcolor45:Set[${Buttons.FindSetting[yxmlcolor45,FF000000]}]
	yxmlcolor46:Set[${Buttons.FindSetting[yxmlcolor46,FF000000]}]
	yxmlcolor47:Set[${Buttons.FindSetting[yxmlcolor47,FF000000]}]
	yxmlcolor48:Set[${Buttons.FindSetting[yxmlcolor48,FF000000]}]
	yxmlcolor49:Set[${Buttons.FindSetting[yxmlcolor49,FF000000]}]
	yxmlcolor50:Set[${Buttons.FindSetting[yxmlcolor50,FF000000]}]
	yxmlcolor51:Set[${Buttons.FindSetting[yxmlcolor51,FF000000]}]
	yxmlcolor52:Set[${Buttons.FindSetting[yxmlcolor52,FF000000]}]
	yxmlcolor53:Set[${Buttons.FindSetting[yxmlcolor53,FF000000]}]
	yxmlcolor54:Set[${Buttons.FindSetting[yxmlcolor54,FF000000]}]
	yxmlcolor55:Set[${Buttons.FindSetting[yxmlcolor55,FF000000]}]
	yxmlcolor56:Set[${Buttons.FindSetting[yxmlcolor56,FF000000]}]
	zxmlcolor1:Set[${Buttons.FindSetting[zxmlcolor1,FF000000]}]
	zxmlcolor2:Set[${Buttons.FindSetting[zxmlcolor2,FF000000]}]
	zxmlcolor3:Set[${Buttons.FindSetting[zxmlcolor3,FF000000]}]
	zxmlcolor4:Set[${Buttons.FindSetting[zxmlcolor4,FF000000]}]
	zxmlcolor5:Set[${Buttons.FindSetting[zxmlcolor5,FF000000]}]
	zxmlcolor6:Set[${Buttons.FindSetting[zxmlcolor6,FF000000]}]
	zxmlcolor7:Set[${Buttons.FindSetting[zxmlcolor7,FF000000]}]
	zxmlcolor8:Set[${Buttons.FindSetting[zxmlcolor8,FF000000]}]
	zxmlcolor9:Set[${Buttons.FindSetting[zxmlcolor9,FF000000]}]
	zxmlcolor10:Set[${Buttons.FindSetting[zxmlcolor10,FF000000]}]
	zxmlcolor11:Set[${Buttons.FindSetting[zxmlcolor11,FF000000]}]
	zxmlcolor12:Set[${Buttons.FindSetting[zxmlcolor12,FF000000]}]
	zxmlcolor13:Set[${Buttons.FindSetting[zxmlcolor13,FF000000]}]
	zxmlcolor14:Set[${Buttons.FindSetting[zxmlcolor14,FF000000]}]
	zxmlcolor15:Set[${Buttons.FindSetting[zxmlcolor15,FF000000]}]
	zxmlcolor16:Set[${Buttons.FindSetting[zxmlcolor16,FF000000]}]
	zxmlcolor17:Set[${Buttons.FindSetting[zxmlcolor17,FF000000]}]
	zxmlcolor18:Set[${Buttons.FindSetting[zxmlcolor18,FF000000]}]
	zxmlcolor19:Set[${Buttons.FindSetting[zxmlcolor19,FF000000]}]
	zxmlcolor20:Set[${Buttons.FindSetting[zxmlcolor20,FF000000]}]
	zxmlcolor21:Set[${Buttons.FindSetting[zxmlcolor21,FF000000]}]
	zxmlcolor22:Set[${Buttons.FindSetting[zxmlcolor22,FF000000]}]
	zxmlcolor23:Set[${Buttons.FindSetting[zxmlcolor23,FF000000]}]
	zxmlcolor24:Set[${Buttons.FindSetting[zxmlcolor24,FF000000]}]
	zxmlcolor25:Set[${Buttons.FindSetting[zxmlcolor25,FF000000]}]
	zxmlcolor26:Set[${Buttons.FindSetting[zxmlcolor26,FF000000]}]
	zxmlcolor27:Set[${Buttons.FindSetting[zxmlcolor27,FF000000]}]
	zxmlcolor28:Set[${Buttons.FindSetting[zxmlcolor28,FF000000]}]
	zxmlcolor29:Set[${Buttons.FindSetting[zxmlcolor29,FF000000]}]
	zxmlcolor30:Set[${Buttons.FindSetting[zxmlcolor30,FF000000]}]
	zxmlcolor31:Set[${Buttons.FindSetting[zxmlcolor31,FF000000]}]
	zxmlcolor32:Set[${Buttons.FindSetting[zxmlcolor32,FF000000]}]
	zxmlcolor33:Set[${Buttons.FindSetting[zxmlcolor33,FF000000]}]
	zxmlcolor34:Set[${Buttons.FindSetting[zxmlcolor34,FF000000]}]
	zxmlcolor35:Set[${Buttons.FindSetting[zxmlcolor35,FF000000]}]
	zxmlcolor36:Set[${Buttons.FindSetting[zxmlcolor36,FF000000]}]
	zxmlcolor37:Set[${Buttons.FindSetting[zxmlcolor37,FF000000]}]
	zxmlcolor38:Set[${Buttons.FindSetting[zxmlcolor38,FF000000]}]
	zxmlcolor39:Set[${Buttons.FindSetting[zxmlcolor39,FF000000]}]
	zxmlcolor40:Set[${Buttons.FindSetting[zxmlcolor40,FF000000]}]
	zxmlcolor41:Set[${Buttons.FindSetting[zxmlcolor41,FF000000]}]
	zxmlcolor42:Set[${Buttons.FindSetting[zxmlcolor42,FF000000]}]
	zxmlcolor43:Set[${Buttons.FindSetting[zxmlcolor43,FF000000]}]
	zxmlcolor44:Set[${Buttons.FindSetting[zxmlcolor44,FF000000]}]
	zxmlcolor45:Set[${Buttons.FindSetting[zxmlcolor45,FF000000]}]
	zxmlcolor46:Set[${Buttons.FindSetting[zxmlcolor46,FF000000]}]
	zxmlcolor47:Set[${Buttons.FindSetting[zxmlcolor47,FF000000]}]
	zxmlcolor48:Set[${Buttons.FindSetting[zxmlcolor48,FF000000]}]
	zxmlcolor49:Set[${Buttons.FindSetting[zxmlcolor49,FF000000]}]
	zxmlcolor50:Set[${Buttons.FindSetting[zxmlcolor50,FF000000]}]
	zxmlcolor51:Set[${Buttons.FindSetting[zxmlcolor51,FF000000]}]
	zxmlcolor52:Set[${Buttons.FindSetting[zxmlcolor52,FF000000]}]
	zxmlcolor53:Set[${Buttons.FindSetting[zxmlcolor53,FF000000]}]
	zxmlcolor54:Set[${Buttons.FindSetting[zxmlcolor54,FF000000]}]
	zxmlcolor55:Set[${Buttons.FindSetting[zxmlcolor55,FF000000]}]
	zxmlcolor56:Set[${Buttons.FindSetting[zxmlcolor56,FF000000]}]

;***********************************************************************************************************************
;Set alpha setting from config
;***********************************************************************************************************************
	
	myalpha:Set[${Buttons.FindSetting[myalpha,1]}]

;***********************************************************************************************************************
;Set button labels from config
;***********************************************************************************************************************

	uxmlbuttontext1:Set[${Buttons.FindSetting[uxmlbuttontext1,Blank]}]
	uxmlbuttontext2:Set[${Buttons.FindSetting[uxmlbuttontext2,Blank]}]
	uxmlbuttontext3:Set[${Buttons.FindSetting[uxmlbuttontext3,Blank]}]
	uxmlbuttontext4:Set[${Buttons.FindSetting[uxmlbuttontext4,Blank]}]
	uxmlbuttontext5:Set[${Buttons.FindSetting[uxmlbuttontext5,Blank]}]
	uxmlbuttontext6:Set[${Buttons.FindSetting[uxmlbuttontext6,Blank]}]
	uxmlbuttontext7:Set[${Buttons.FindSetting[uxmlbuttontext7,Blank]}]
	uxmlbuttontext8:Set[${Buttons.FindSetting[uxmlbuttontext8,Blank]}]
	uxmlbuttontext9:Set[${Buttons.FindSetting[uxmlbuttontext9,Blank]}]
	uxmlbuttontext10:Set[${Buttons.FindSetting[uxmlbuttontext10,Blank]}]
	uxmlbuttontext11:Set[${Buttons.FindSetting[uxmlbuttontext11,Blank]}]
	uxmlbuttontext12:Set[${Buttons.FindSetting[uxmlbuttontext12,Blank]}]
	uxmlbuttontext13:Set[${Buttons.FindSetting[uxmlbuttontext13,Blank]}]
	uxmlbuttontext14:Set[${Buttons.FindSetting[uxmlbuttontext14,Blank]}]
	uxmlbuttontext15:Set[${Buttons.FindSetting[uxmlbuttontext15,Blank]}]
	uxmlbuttontext16:Set[${Buttons.FindSetting[uxmlbuttontext16,Blank]}]
	uxmlbuttontext17:Set[${Buttons.FindSetting[uxmlbuttontext17,Blank]}]
	uxmlbuttontext18:Set[${Buttons.FindSetting[uxmlbuttontext18,Blank]}]
	uxmlbuttontext19:Set[${Buttons.FindSetting[uxmlbuttontext19,Blank]}]
	uxmlbuttontext20:Set[${Buttons.FindSetting[uxmlbuttontext20,Blank]}]
	uxmlbuttontext21:Set[${Buttons.FindSetting[uxmlbuttontext21,Blank]}]
	uxmlbuttontext22:Set[${Buttons.FindSetting[uxmlbuttontext22,Blank]}]
	uxmlbuttontext23:Set[${Buttons.FindSetting[uxmlbuttontext23,Blank]}]
	uxmlbuttontext24:Set[${Buttons.FindSetting[uxmlbuttontext24,Blank]}]
	uxmlbuttontext25:Set[${Buttons.FindSetting[uxmlbuttontext25,Blank]}]
	uxmlbuttontext26:Set[${Buttons.FindSetting[uxmlbuttontext26,Blank]}]
	uxmlbuttontext27:Set[${Buttons.FindSetting[uxmlbuttontext27,Blank]}]
	uxmlbuttontext28:Set[${Buttons.FindSetting[uxmlbuttontext28,Blank]}]
	uxmlbuttontext29:Set[${Buttons.FindSetting[uxmlbuttontext29,Blank]}]
	uxmlbuttontext30:Set[${Buttons.FindSetting[uxmlbuttontext30,Blank]}]
	uxmlbuttontext31:Set[${Buttons.FindSetting[uxmlbuttontext31,Blank]}]
	uxmlbuttontext32:Set[${Buttons.FindSetting[uxmlbuttontext32,Blank]}]
	uxmlbuttontext33:Set[${Buttons.FindSetting[uxmlbuttontext33,Blank]}]
	uxmlbuttontext34:Set[${Buttons.FindSetting[uxmlbuttontext34,Blank]}]
	uxmlbuttontext35:Set[${Buttons.FindSetting[uxmlbuttontext35,Blank]}]
	uxmlbuttontext36:Set[${Buttons.FindSetting[uxmlbuttontext36,Blank]}]
	uxmlbuttontext37:Set[${Buttons.FindSetting[uxmlbuttontext37,Blank]}]
	uxmlbuttontext38:Set[${Buttons.FindSetting[uxmlbuttontext38,Blank]}]
	uxmlbuttontext39:Set[${Buttons.FindSetting[uxmlbuttontext39,Blank]}]
	uxmlbuttontext40:Set[${Buttons.FindSetting[uxmlbuttontext40,Blank]}]
	uxmlbuttontext41:Set[${Buttons.FindSetting[uxmlbuttontext41,Blank]}]
	uxmlbuttontext42:Set[${Buttons.FindSetting[uxmlbuttontext42,Blank]}]
	uxmlbuttontext43:Set[${Buttons.FindSetting[uxmlbuttontext43,Blank]}]
	uxmlbuttontext44:Set[${Buttons.FindSetting[uxmlbuttontext44,Blank]}]
	uxmlbuttontext45:Set[${Buttons.FindSetting[uxmlbuttontext45,Blank]}]
	uxmlbuttontext46:Set[${Buttons.FindSetting[uxmlbuttontext46,Blank]}]
	uxmlbuttontext47:Set[${Buttons.FindSetting[uxmlbuttontext47,Blank]}]
	uxmlbuttontext48:Set[${Buttons.FindSetting[uxmlbuttontext48,Blank]}]
	uxmlbuttontext49:Set[${Buttons.FindSetting[uxmlbuttontext49,Blank]}]
	uxmlbuttontext50:Set[${Buttons.FindSetting[uxmlbuttontext50,Blank]}]
	uxmlbuttontext51:Set[${Buttons.FindSetting[uxmlbuttontext51,Blank]}]
	uxmlbuttontext52:Set[${Buttons.FindSetting[uxmlbuttontext52,Blank]}]
	uxmlbuttontext53:Set[${Buttons.FindSetting[uxmlbuttontext53,Blank]}]
	uxmlbuttontext54:Set[${Buttons.FindSetting[uxmlbuttontext54,Blank]}]
	uxmlbuttontext55:Set[${Buttons.FindSetting[uxmlbuttontext55,Blank]}]
	uxmlbuttontext56:Set[${Buttons.FindSetting[uxmlbuttontext56,Blank]}]
	uxmlbuttontext1a:Set[${Buttons.FindSetting[uxmlbuttontext1a,Blank]}]
	uxmlbuttontext2a:Set[${Buttons.FindSetting[uxmlbuttontext2a,Blank]}]
	uxmlbuttontext3a:Set[${Buttons.FindSetting[uxmlbuttontext3a,Blank]}]
	uxmlbuttontext4a:Set[${Buttons.FindSetting[uxmlbuttontext4a,Blank]}]
	uxmlbuttontext5a:Set[${Buttons.FindSetting[uxmlbuttontext5a,Blank]}]
	uxmlbuttontext6a:Set[${Buttons.FindSetting[uxmlbuttontext6a,Blank]}]
	uxmlbuttontext7a:Set[${Buttons.FindSetting[uxmlbuttontext7a,Blank]}]
	uxmlbuttontext8a:Set[${Buttons.FindSetting[uxmlbuttontext8a,Blank]}]
	uxmlbuttontext9a:Set[${Buttons.FindSetting[uxmlbuttontext9a,Blank]}]
	uxmlbuttontext10a:Set[${Buttons.FindSetting[uxmlbuttontext10a,Blank]}]
	uxmlbuttontext11a:Set[${Buttons.FindSetting[uxmlbuttontext11a,Blank]}]
	uxmlbuttontext12a:Set[${Buttons.FindSetting[uxmlbuttontext12a,Blank]}]
	uxmlbuttontext13a:Set[${Buttons.FindSetting[uxmlbuttontext13a,Blank]}]
	uxmlbuttontext14a:Set[${Buttons.FindSetting[uxmlbuttontext14a,Blank]}]
	uxmlbuttontext15a:Set[${Buttons.FindSetting[uxmlbuttontext15a,Blank]}]
	uxmlbuttontext16a:Set[${Buttons.FindSetting[uxmlbuttontext16a,Blank]}]
	uxmlbuttontext17a:Set[${Buttons.FindSetting[uxmlbuttontext17a,Blank]}]
	uxmlbuttontext18a:Set[${Buttons.FindSetting[uxmlbuttontext18a,Blank]}]
	uxmlbuttontext19a:Set[${Buttons.FindSetting[uxmlbuttontext19a,Blank]}]
	uxmlbuttontext20a:Set[${Buttons.FindSetting[uxmlbuttontext20a,Blank]}]
	uxmlbuttontext21a:Set[${Buttons.FindSetting[uxmlbuttontext21a,Blank]}]
	uxmlbuttontext22a:Set[${Buttons.FindSetting[uxmlbuttontext22a,Blank]}]
	uxmlbuttontext23a:Set[${Buttons.FindSetting[uxmlbuttontext23a,Blank]}]
	uxmlbuttontext24a:Set[${Buttons.FindSetting[uxmlbuttontext24a,Blank]}]
	uxmlbuttontext25a:Set[${Buttons.FindSetting[uxmlbuttontext25a,Blank]}]
	uxmlbuttontext26a:Set[${Buttons.FindSetting[uxmlbuttontext26a,Blank]}]
	uxmlbuttontext27a:Set[${Buttons.FindSetting[uxmlbuttontext27a,Blank]}]
	uxmlbuttontext28a:Set[${Buttons.FindSetting[uxmlbuttontext28a,Blank]}]
	uxmlbuttontext29a:Set[${Buttons.FindSetting[uxmlbuttontext29a,Blank]}]
	uxmlbuttontext30a:Set[${Buttons.FindSetting[uxmlbuttontext30a,Blank]}]
	uxmlbuttontext31a:Set[${Buttons.FindSetting[uxmlbuttontext31a,Blank]}]
	uxmlbuttontext32a:Set[${Buttons.FindSetting[uxmlbuttontext32a,Blank]}]
	uxmlbuttontext33a:Set[${Buttons.FindSetting[uxmlbuttontext33a,Blank]}]
	uxmlbuttontext34a:Set[${Buttons.FindSetting[uxmlbuttontext34a,Blank]}]
	uxmlbuttontext35a:Set[${Buttons.FindSetting[uxmlbuttontext35a,Blank]}]
	uxmlbuttontext36a:Set[${Buttons.FindSetting[uxmlbuttontext36a,Blank]}]
	uxmlbuttontext37a:Set[${Buttons.FindSetting[uxmlbuttontext37a,Blank]}]
	uxmlbuttontext38a:Set[${Buttons.FindSetting[uxmlbuttontext38a,Blank]}]
	uxmlbuttontext39a:Set[${Buttons.FindSetting[uxmlbuttontext39a,Blank]}]
	uxmlbuttontext40a:Set[${Buttons.FindSetting[uxmlbuttontext40a,Blank]}]
	uxmlbuttontext41a:Set[${Buttons.FindSetting[uxmlbuttontext41a,Blank]}]
	uxmlbuttontext42a:Set[${Buttons.FindSetting[uxmlbuttontext42a,Blank]}]
	uxmlbuttontext43a:Set[${Buttons.FindSetting[uxmlbuttontext43a,Blank]}]
	uxmlbuttontext44a:Set[${Buttons.FindSetting[uxmlbuttontext44a,Blank]}]
	uxmlbuttontext45a:Set[${Buttons.FindSetting[uxmlbuttontext45a,Blank]}]
	uxmlbuttontext46a:Set[${Buttons.FindSetting[uxmlbuttontext46a,Blank]}]
	uxmlbuttontext47a:Set[${Buttons.FindSetting[uxmlbuttontext47a,Blank]}]
	uxmlbuttontext48a:Set[${Buttons.FindSetting[uxmlbuttontext48a,Blank]}]
	uxmlbuttontext49a:Set[${Buttons.FindSetting[uxmlbuttontext49a,Blank]}]
	uxmlbuttontext50a:Set[${Buttons.FindSetting[uxmlbuttontext50a,Blank]}]
	uxmlbuttontext51a:Set[${Buttons.FindSetting[uxmlbuttontext51a,Blank]}]
	uxmlbuttontext52a:Set[${Buttons.FindSetting[uxmlbuttontext52a,Blank]}]
	uxmlbuttontext53a:Set[${Buttons.FindSetting[uxmlbuttontext53a,Blank]}]
	uxmlbuttontext54a:Set[${Buttons.FindSetting[uxmlbuttontext54a,Blank]}]
	uxmlbuttontext55a:Set[${Buttons.FindSetting[uxmlbuttontext55a,Blank]}]
	uxmlbuttontext56a:Set[${Buttons.FindSetting[uxmlbuttontext56a,Blank]}]

;***********************************************************************************************************************	
;Set keycombo variables from config
;***********************************************************************************************************************

	vxmlbutton1:Set[${Buttons.FindSetting[vxmlbutton1,Blank]}]
	vxmlbutton2:Set[${Buttons.FindSetting[vxmlbutton2,Blank]}]
	vxmlbutton3:Set[${Buttons.FindSetting[vxmlbutton3,Blank]}]
	vxmlbutton4:Set[${Buttons.FindSetting[vxmlbutton4,Blank]}]
	vxmlbutton5:Set[${Buttons.FindSetting[vxmlbutton5,Blank]}]
	vxmlbutton6:Set[${Buttons.FindSetting[vxmlbutton6,Blank]}]
	vxmlbutton7:Set[${Buttons.FindSetting[vxmlbutton7,Blank]}]
	vxmlbutton8:Set[${Buttons.FindSetting[vxmlbutton8,Blank]}]
	vxmlbutton9:Set[${Buttons.FindSetting[vxmlbutton9,Blank]}]
	vxmlbutton10:Set[${Buttons.FindSetting[vxmlbutton10,Blank]}]
	vxmlbutton11:Set[${Buttons.FindSetting[vxmlbutton11,Blank]}]
	vxmlbutton12:Set[${Buttons.FindSetting[vxmlbutton12,Blank]}]
	vxmlbutton13:Set[${Buttons.FindSetting[vxmlbutton13,Blank]}]
	vxmlbutton14:Set[${Buttons.FindSetting[vxmlbutton14,Blank]}]
	vxmlbutton15:Set[${Buttons.FindSetting[vxmlbutton15,Blank]}]
	vxmlbutton16:Set[${Buttons.FindSetting[vxmlbutton16,Blank]}]
	vxmlbutton17:Set[${Buttons.FindSetting[vxmlbutton17,Blank]}]
	vxmlbutton18:Set[${Buttons.FindSetting[vxmlbutton18,Blank]}]
	vxmlbutton19:Set[${Buttons.FindSetting[vxmlbutton19,Blank]}]
	vxmlbutton20:Set[${Buttons.FindSetting[vxmlbutton20,Blank]}]
	vxmlbutton21:Set[${Buttons.FindSetting[vxmlbutton21,Blank]}]
	vxmlbutton22:Set[${Buttons.FindSetting[vxmlbutton22,Blank]}]
	vxmlbutton23:Set[${Buttons.FindSetting[vxmlbutton23,Blank]}]
	vxmlbutton24:Set[${Buttons.FindSetting[vxmlbutton24,Blank]}]
	vxmlbutton25:Set[${Buttons.FindSetting[vxmlbutton25,Blank]}]
	vxmlbutton26:Set[${Buttons.FindSetting[vxmlbutton26,Blank]}]
	vxmlbutton27:Set[${Buttons.FindSetting[vxmlbutton27,Blank]}]
	vxmlbutton28:Set[${Buttons.FindSetting[vxmlbutton28,Blank]}]
	vxmlbutton29:Set[${Buttons.FindSetting[vxmlbutton29,Blank]}]
	vxmlbutton30:Set[${Buttons.FindSetting[vxmlbutton30,Blank]}]
	vxmlbutton31:Set[${Buttons.FindSetting[vxmlbutton31,Blank]}]
	vxmlbutton32:Set[${Buttons.FindSetting[vxmlbutton32,Blank]}]
	vxmlbutton33:Set[${Buttons.FindSetting[vxmlbutton33,Blank]}]
	vxmlbutton34:Set[${Buttons.FindSetting[vxmlbutton34,Blank]}]
	vxmlbutton35:Set[${Buttons.FindSetting[vxmlbutton35,Blank]}]
	vxmlbutton36:Set[${Buttons.FindSetting[vxmlbutton36,Blank]}]
	vxmlbutton37:Set[${Buttons.FindSetting[vxmlbutton37,Blank]}]
	vxmlbutton38:Set[${Buttons.FindSetting[vxmlbutton38,Blank]}]
	vxmlbutton39:Set[${Buttons.FindSetting[vxmlbutton39,Blank]}]
	vxmlbutton40:Set[${Buttons.FindSetting[vxmlbutton40,Blank]}]
	vxmlbutton41:Set[${Buttons.FindSetting[vxmlbutton41,Blank]}]
	vxmlbutton42:Set[${Buttons.FindSetting[vxmlbutton42,Blank]}]
	vxmlbutton43:Set[${Buttons.FindSetting[vxmlbutton43,Blank]}]
	vxmlbutton44:Set[${Buttons.FindSetting[vxmlbutton44,Blank]}]
	vxmlbutton45:Set[${Buttons.FindSetting[vxmlbutton45,Blank]}]
	vxmlbutton46:Set[${Buttons.FindSetting[vxmlbutton46,Blank]}]
	vxmlbutton47:Set[${Buttons.FindSetting[vxmlbutton47,Blank]}]
	vxmlbutton48:Set[${Buttons.FindSetting[vxmlbutton48,Blank]}]
	vxmlbutton49:Set[${Buttons.FindSetting[vxmlbutton49,Blank]}]
	vxmlbutton50:Set[${Buttons.FindSetting[vxmlbutton50,Blank]}]
	vxmlbutton51:Set[${Buttons.FindSetting[vxmlbutton51,Blank]}]
	vxmlbutton52:Set[${Buttons.FindSetting[vxmlbutton52,Blank]}]
	vxmlbutton53:Set[${Buttons.FindSetting[vxmlbutton53,Blank]}]
	vxmlbutton54:Set[${Buttons.FindSetting[vxmlbutton54,Blank]}]
	vxmlbutton55:Set[${Buttons.FindSetting[vxmlbutton55,Blank]}]
	vxmlbutton56:Set[${Buttons.FindSetting[vxmlbutton56,Blank]}]
	vxmlbutton1a:Set[${Buttons.FindSetting[vxmlbutton1a,Blank]}]
	vxmlbutton2a:Set[${Buttons.FindSetting[vxmlbutton2a,Blank]}]
	vxmlbutton3a:Set[${Buttons.FindSetting[vxmlbutton3a,Blank]}]
	vxmlbutton4a:Set[${Buttons.FindSetting[vxmlbutton4a,Blank]}]
	vxmlbutton5a:Set[${Buttons.FindSetting[vxmlbutton5a,Blank]}]
	vxmlbutton6a:Set[${Buttons.FindSetting[vxmlbutton6,Blank]}]
	vxmlbutton7a:Set[${Buttons.FindSetting[vxmlbutton7a,Blank]}]
	vxmlbutton8a:Set[${Buttons.FindSetting[vxmlbutton8a,Blank]}]
	vxmlbutton9a:Set[${Buttons.FindSetting[vxmlbutton9a,Blank]}]
	vxmlbutton10a:Set[${Buttons.FindSetting[vxmlbutton10a,Blank]}]
	vxmlbutton11a:Set[${Buttons.FindSetting[vxmlbutton11a,Blank]}]
	vxmlbutton12a:Set[${Buttons.FindSetting[vxmlbutton12a,Blank]}]
	vxmlbutton13a:Set[${Buttons.FindSetting[vxmlbutton13a,Blank]}]
	vxmlbutton14a:Set[${Buttons.FindSetting[vxmlbutton14a,Blank]}]
	vxmlbutton15a:Set[${Buttons.FindSetting[vxmlbutton15a,Blank]}]
	vxmlbutton16a:Set[${Buttons.FindSetting[vxmlbutton16a,Blank]}]
	vxmlbutton17a:Set[${Buttons.FindSetting[vxmlbutton17a,Blank]}]
	vxmlbutton18a:Set[${Buttons.FindSetting[vxmlbutton18a,Blank]}]
	vxmlbutton19a:Set[${Buttons.FindSetting[vxmlbutton19a,Blank]}]
	vxmlbutton20a:Set[${Buttons.FindSetting[vxmlbutton20a,Blank]}]
	vxmlbutton21a:Set[${Buttons.FindSetting[vxmlbutton21a,Blank]}]
	vxmlbutton22a:Set[${Buttons.FindSetting[vxmlbutton22a,Blank]}]
	vxmlbutton23a:Set[${Buttons.FindSetting[vxmlbutton23a,Blank]}]
	vxmlbutton24a:Set[${Buttons.FindSetting[vxmlbutton24a,Blank]}]
	vxmlbutton25a:Set[${Buttons.FindSetting[vxmlbutton25a,Blank]}]
	vxmlbutton26a:Set[${Buttons.FindSetting[vxmlbutton26a,Blank]}]
	vxmlbutton27a:Set[${Buttons.FindSetting[vxmlbutton27a,Blank]}]
	vxmlbutton28a:Set[${Buttons.FindSetting[vxmlbutton28a,Blank]}]
	vxmlbutton29a:Set[${Buttons.FindSetting[vxmlbutton29a,Blank]}]
	vxmlbutton30a:Set[${Buttons.FindSetting[vxmlbutton30a,Blank]}]
	vxmlbutton31a:Set[${Buttons.FindSetting[vxmlbutton31a,Blank]}]
	vxmlbutton32a:Set[${Buttons.FindSetting[vxmlbutton32a,Blank]}]
	vxmlbutton33a:Set[${Buttons.FindSetting[vxmlbutton33a,Blank]}]
	vxmlbutton34a:Set[${Buttons.FindSetting[vxmlbutton34a,Blank]}]
	vxmlbutton35a:Set[${Buttons.FindSetting[vxmlbutton35a,Blank]}]
	vxmlbutton36a:Set[${Buttons.FindSetting[vxmlbutton36a,Blank]}]
	vxmlbutton37a:Set[${Buttons.FindSetting[vxmlbutton37a,Blank]}]
	vxmlbutton38a:Set[${Buttons.FindSetting[vxmlbutton38a,Blank]}]
	vxmlbutton39a:Set[${Buttons.FindSetting[vxmlbutton39a,Blank]}]
	vxmlbutton40a:Set[${Buttons.FindSetting[vxmlbutton40a,Blank]}]
	vxmlbutton41a:Set[${Buttons.FindSetting[vxmlbutton41a,Blank]}]
	vxmlbutton42a:Set[${Buttons.FindSetting[vxmlbutton42a,Blank]}]
	vxmlbutton43a:Set[${Buttons.FindSetting[vxmlbutton43a,Blank]}]
	vxmlbutton44a:Set[${Buttons.FindSetting[vxmlbutton44a,Blank]}]
	vxmlbutton45a:Set[${Buttons.FindSetting[vxmlbutton45a,Blank]}]
	vxmlbutton46a:Set[${Buttons.FindSetting[vxmlbutton46a,Blank]}]
	vxmlbutton47a:Set[${Buttons.FindSetting[vxmlbutton47a,Blank]}]
	vxmlbutton48a:Set[${Buttons.FindSetting[vxmlbutton48a,Blank]}]
	vxmlbutton49a:Set[${Buttons.FindSetting[vxmlbutton49a,Blank]}]
	vxmlbutton50a:Set[${Buttons.FindSetting[vxmlbutton50a,Blank]}]
	vxmlbutton51a:Set[${Buttons.FindSetting[vxmlbutton51a,Blank]}]
	vxmlbutton52a:Set[${Buttons.FindSetting[vxmlbutton52a,Blank]}]
	vxmlbutton53a:Set[${Buttons.FindSetting[vxmlbutton53a,Blank]}]
	vxmlbutton54a:Set[${Buttons.FindSetting[vxmlbutton54a,Blank]}]
	vxmlbutton55a:Set[${Buttons.FindSetting[vxmlbutton55a,Blank]}]
	vxmlbutton56a:Set[${Buttons.FindSetting[vxmlbutton56a,Blank]}]

;***********************************************************************************************************************	
;Set toggle state variables from config
;***********************************************************************************************************************

	exmlbutton1:Set[${Buttons.FindSetting[exmlbutton1,FALSE]}]
	exmlbutton2:Set[${Buttons.FindSetting[exmlbutton2,FALSE]}]
	exmlbutton3:Set[${Buttons.FindSetting[exmlbutton3,FALSE]}]
	exmlbutton4:Set[${Buttons.FindSetting[exmlbutton4,FALSE]}]
	exmlbutton5:Set[${Buttons.FindSetting[exmlbutton5,FALSE]}]
	exmlbutton6:Set[${Buttons.FindSetting[exmlbutton6,FALSE]}]
	exmlbutton7:Set[${Buttons.FindSetting[exmlbutton7,FALSE]}]
	exmlbutton8:Set[${Buttons.FindSetting[exmlbutton8,FALSE]}]
	exmlbutton9:Set[${Buttons.FindSetting[exmlbutton9,FALSE]}]
	exmlbutton10:Set[${Buttons.FindSetting[exmlbutton10,FALSE]}]
	exmlbutton11:Set[${Buttons.FindSetting[exmlbutton11,FALSE]}]
	exmlbutton12:Set[${Buttons.FindSetting[exmlbutton12,FALSE]}]
	exmlbutton13:Set[${Buttons.FindSetting[exmlbutton13,FALSE]}]
	exmlbutton14:Set[${Buttons.FindSetting[exmlbutton14,FALSE]}]
	exmlbutton15:Set[${Buttons.FindSetting[exmlbutton15,FALSE]}]
	exmlbutton16:Set[${Buttons.FindSetting[exmlbutton16,FALSE]}]
	exmlbutton17:Set[${Buttons.FindSetting[exmlbutton17,FALSE]}]
	exmlbutton18:Set[${Buttons.FindSetting[exmlbutton18,FALSE]}]
	exmlbutton19:Set[${Buttons.FindSetting[exmlbutton19,FALSE]}]
	exmlbutton20:Set[${Buttons.FindSetting[exmlbutton20,FALSE]}]
	exmlbutton21:Set[${Buttons.FindSetting[exmlbutton21,FALSE]}]
	exmlbutton22:Set[${Buttons.FindSetting[exmlbutton22,FALSE]}]
	exmlbutton23:Set[${Buttons.FindSetting[exmlbutton23,FALSE]}]
	exmlbutton24:Set[${Buttons.FindSetting[exmlbutton24,FALSE]}]
	exmlbutton25:Set[${Buttons.FindSetting[exmlbutton25,FALSE]}]
	exmlbutton26:Set[${Buttons.FindSetting[exmlbutton26,FALSE]}]
	exmlbutton27:Set[${Buttons.FindSetting[exmlbutton27,FALSE]}]
	exmlbutton28:Set[${Buttons.FindSetting[exmlbutton28,FALSE]}]
	exmlbutton29:Set[${Buttons.FindSetting[exmlbutton29,FALSE]}]
	exmlbutton30:Set[${Buttons.FindSetting[exmlbutton30,FALSE]}]
	exmlbutton31:Set[${Buttons.FindSetting[exmlbutton31,FALSE]}]
	exmlbutton32:Set[${Buttons.FindSetting[exmlbutton32,FALSE]}]
	exmlbutton33:Set[${Buttons.FindSetting[exmlbutton33,FALSE]}]
	exmlbutton34:Set[${Buttons.FindSetting[exmlbutton34,FALSE]}]
	exmlbutton35:Set[${Buttons.FindSetting[exmlbutton35,FALSE]}]
	exmlbutton36:Set[${Buttons.FindSetting[exmlbutton36,FALSE]}]
	exmlbutton37:Set[${Buttons.FindSetting[exmlbutton37,FALSE]}]
	exmlbutton38:Set[${Buttons.FindSetting[exmlbutton38,FALSE]}]
	exmlbutton39:Set[${Buttons.FindSetting[exmlbutton39,FALSE]}]
	exmlbutton40:Set[${Buttons.FindSetting[exmlbutton40,FALSE]}]
	exmlbutton41:Set[${Buttons.FindSetting[exmlbutton41,FALSE]}]
	exmlbutton42:Set[${Buttons.FindSetting[exmlbutton42,FALSE]}]
	exmlbutton43:Set[${Buttons.FindSetting[exmlbutton43,FALSE]}]
	exmlbutton44:Set[${Buttons.FindSetting[exmlbutton44,FALSE]}]
	exmlbutton45:Set[${Buttons.FindSetting[exmlbutton45,FALSE]}]
	exmlbutton46:Set[${Buttons.FindSetting[exmlbutton46,FALSE]}]
	exmlbutton47:Set[${Buttons.FindSetting[exmlbutton47,FALSE]}]
	exmlbutton48:Set[${Buttons.FindSetting[exmlbutton48,FALSE]}]
	exmlbutton49:Set[${Buttons.FindSetting[exmlbutton49,FALSE]}]
	exmlbutton50:Set[${Buttons.FindSetting[exmlbutton50,FALSE]}]
	exmlbutton51:Set[${Buttons.FindSetting[exmlbutton51,FALSE]}]
	exmlbutton52:Set[${Buttons.FindSetting[exmlbutton52,FALSE]}]
	exmlbutton53:Set[${Buttons.FindSetting[exmlbutton53,FALSE]}]
	exmlbutton54:Set[${Buttons.FindSetting[exmlbutton54,FALSE]}]
	exmlbutton55:Set[${Buttons.FindSetting[exmlbutton55,FALSE]}]
	exmlbutton56:Set[${Buttons.FindSetting[exmlbutton56,FALSE]}]


;***********************************************************************************************************************
;Loading configured custom tabs by name and orientation (landscape or portrait)
;***********************************************************************************************************************

	if ${uiversion.Equal[Portrait]}
	{
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}]:AddTab[${xmltab1}]
		if ${xmltab2.NotEqual[Tab 2]}
		{
			UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}]:AddTab[${xmltab2}]
		}
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[2]:Move[1]
		if ${xmltab2.NotEqual[Tab 2]}
		{
			UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[3]:Move[2]
		}
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[2]:Select
		ui -load -parent "${xmltab1}@${TABCONTROLELEMENT}@${WINDOWELEMENT}" "${MYUIPATH}/tab1.xml"
		if ${xmltab2.NotEqual[Tab 2]}
		{
			ui -load -parent "${xmltab2}@${TABCONTROLELEMENT}@${WINDOWELEMENT}" "${MYUIPATH}/tab2.xml"
		}
	}
	if ${uiversion.Equal[Landscape]}
	{
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}]:AddTab[${xmltab1}]
		if ${xmltab2.NotEqual[Tab 2]}
		{
			UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}]:AddTab[${xmltab2}]
		}
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[2]:Move[1]
		if ${xmltab2.NotEqual[Tab 2]}
		{
			UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[3]:Move[2]
		}
		UIElement[${TABCONTROLELEMENT}@${WINDOWELEMENT}].Tab[2]:Select
		
		ui -load -parent "${xmltab1}@${TABCONTROLELEMENT}@${WINDOWELEMENT}" "${MYUIPATH}/tab1ls.xml"
		if ${xmltab2.NotEqual[Tab 2]}
		{
			ui -load -parent "${xmltab2}@${TABCONTROLELEMENT}@${WINDOWELEMENT}" "${MYUIPATH}/tab2ls.xml"
		}
	}

;***********************************************************************************************************************
;Setting Button labels and font size for configured tabs on start
;***********************************************************************************************************************

	if ${uiversion.NotEqual[Ghost]}
	{
		call xmltab1set
		if ${xmltab2.NotEqual[Tab 2]}
		{
		call xmltab2set
		}
	}
	if ${uiversion.Equal[Ghost]}
	{
		call xmlframe1set
		call xmlframe2set
	}

;***********************************************************************************************************************
;Setting font height for Setup tab buttons
;***********************************************************************************************************************
	
	if ${uiversion.NotEqual[Ghost]}
	{
		call xmltabsetupset
	}
	
;***********************************************************************************************************************
;Setting Button labels and colors for configured tabs from UI Reload on config change!
;***********************************************************************************************************************

	if ${uiversion.NotEqual[Ghost]}
	{
		call settab1togglesonrefresh
		call settab2togglesonrefresh

		UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].Font:SetHeight[${xmlfontheight}]	
		UIElement[${WINDOWELEMENT}]:SetAlpha[${myalpha}]
	}
	if ${uiversion.Equal[Ghost]}
	{
		call setg1togglesonrefresh
		call setg2togglesonrefresh
		UIElement[ghost1]:SetX[${myxloc1}]
		UIElement[ghost1]:SetY[${myyloc1}]
		UIElement[ghost2]:SetX[${myxloc2}]
		UIElement[ghost2]:SetY[${myyloc2}]
	}
	Return
}
	
;***********************************************************************************************************************
;Global UI Setup
;***********************************************************************************************************************

function setmyui()
{
	if ${uiversion.Equal[Ghost]}
	{
		UI -load "${MYUIPATH}/gxmluisettings.xml"
		UIElement[UI Settings].FindChild[eqsettings].FindChild[Tabs/UI Setup].FindChild[ghost]:ToggleChecked
	}
	else
	{
		UI -load "${MYUIPATH}/xmluisettings.xml"
		if ${uiversion.Equal[Landscape]}
		{
			UIElement[UI Settings].FindChild[eqsettings].FindChild[Tabs/UI Setup].FindChild[landscape]:ToggleChecked
		}
		if ${uiversion.Equal[Portrait]}
		{
			UIElement[UI Settings].FindChild[eqsettings].FindChild[Tabs/UI Setup].FindChild[portrait]:ToggleChecked
		}
		if ${uiversion.Equal[Ghost]}
		{
			UIElement[UI Settings].FindChild[eqsettings].FindChild[Tabs/UI Setup].FindChild[ghost]:ToggleChecked
		}
	}
}

;***********************************************************************************************************************
;Query user for custom tab names from Setup
;***********************************************************************************************************************

function settabs()
{
	InputBox "Tab 1 Name (Currently: ${xmltab1})"
	if ${UserInput.NotEqual[NULL]}
	{
		xmltab1:Set["${UserInput}"]
	}
	else
	{
		xmltab1:Set[Tab 1]
	}
	MessageBox -yesno "Do you want to add a second tab?"
	if ${UserInput.Equal["Yes"]}
	{
		InputBox "Tab 2 Name (Currently: ${xmltab2})"
		if ${UserInput.NotEqual[NULL]}
		{
			xmltab2:Set["${UserInput}"]
			call export
		}
	}
	else
	{
		xmltab2:Set[Tab 2]
		call export
	}
}

;***********************************************************************************************************************
;Query user for custom button labels and key combinations from setup tab
;***********************************************************************************************************************

function querybutton(int calledby)
{
	ibethis:Set[${calledby}]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE

	{
		call makecfg
	}
	return
}

function querybutton1()
{
	ibethis:Set[1]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE

	{
		call makecfg
	}
}
function querybutton2()
{
	ibethis:Set[2]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton3()
{
	ibethis:Set[3]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton4()
{
	ibethis:Set[4]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton5()
{
	ibethis:Set[5]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton6()
{
	ibethis:Set[6]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton7()
{
	ibethis:Set[7]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton8()
{
	ibethis:Set[8]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton9()
{
	ibethis:Set[9]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton10()
{
	ibethis:Set[10]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton11()
{
	ibethis:Set[11]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton12()
{
	ibethis:Set[12]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton13()
{
	ibethis:Set[13]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton14()
{
	ibethis:Set[14]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton15()
{
	ibethis:Set[15]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton16()
{
	ibethis:Set[16]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton17()
{
	ibethis:Set[17]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton18()
{
	ibethis:Set[18]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton19()
{
	ibethis:Set[19]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton20()
{
	ibethis:Set[20]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton21()
{
	ibethis:Set[21]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton22()
{
	ibethis:Set[22]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton23()
{
	ibethis:Set[23]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton24()
{
	ibethis:Set[24]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton25()
{
	ibethis:Set[25]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton26()
{
	ibethis:Set[26]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton27()
{
	ibethis:Set[27]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function querybutton28()
{
	ibethis:Set[28]
	call buttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}

;***********************************************************************************************************************
;Query user for custom button settings for ghostbuttons from Setup
;***********************************************************************************************************************

function gquerybutton(int calledby)
{
	ibethis:Set[${calledby}]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE

	{
		call makecfg
	}
	return
}

function gquerybutton1()
{
	ibethis:Set[1]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE

	{
		call makecfg
	}
}
function gquerybutton2()
{
	ibethis:Set[2]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton3()
{
	ibethis:Set[3]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton4()
{
	ibethis:Set[4]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton5()
{
	ibethis:Set[5]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton6()
{
	ibethis:Set[6]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton7()
{
	ibethis:Set[7]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton8()
{
	ibethis:Set[8]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton9()
{
	ibethis:Set[9]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton10()
{
	ibethis:Set[10]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton11()
{
	ibethis:Set[11]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton12()
{
	ibethis:Set[12]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton13()
{
	ibethis:Set[13]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton14()
{
	ibethis:Set[14]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton15()
{
	ibethis:Set[15]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton16()
{
	ibethis:Set[16]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton17()
{
	ibethis:Set[17]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton18()
{
	ibethis:Set[18]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton19()
{
	ibethis:Set[19]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton20()
{
	ibethis:Set[20]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton21()
{
	ibethis:Set[21]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton22()
{
	ibethis:Set[22]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton23()
{
	ibethis:Set[23]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton24()
{
	ibethis:Set[24]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton25()
{
	ibethis:Set[25]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton26()
{
	ibethis:Set[26]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton27()
{
	ibethis:Set[27]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}
function gquerybutton28()
{
	ibethis:Set[28]
	call gbuttonquery
	call export
	call refresh
	if ${cfgbail} == FALSE
	{
		call makecfg
	}
}

;********************************************************************************************************************************************
;Button Functions (making it happen), changes text to represent button state/executes key action and also changes the color, red=off green=on
;********************************************************************************************************************************************

function Txmlbutton1()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton1} !=  FALSE
		{
			if ${Txmlbutton1} == FALSE
			{
					Txmlbutton1:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton1]:SetText[${uxmlbuttontext1a}]		
					UIElement[ghost1].FindChild[xmlbutton1].Font:SetColor[${zxmlcolor1}]
					Press ${vxmlbutton1}
			}
			else
			{
					Txmlbutton1:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton1]:SetText[${uxmlbuttontext1}]		
					UIElement[ghost1].FindChild[xmlbutton1].Font:SetColor[${yxmlcolor1}]
					Press ${vxmlbutton1a}
			}
		}		
		else
		{
			Press ${vxmlbutton1}
		}
	}
	else
	{
		if ${exmlbutton1} !=  FALSE
		{
			if ${Txmlbutton1} == FALSE
			{
					Txmlbutton1:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton1]:SetText[${uxmlbuttontext1a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton1].Font:SetColor[${zxmlcolor1}]
					Press ${vxmlbutton1}
			}
			else
			{
					Txmlbutton1:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton1]:SetText[${uxmlbuttontext1}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton1].Font:SetColor[${yxmlcolor1}]
					Press ${vxmlbutton1a}
			}
		}		
		else
		{
			Press ${vxmlbutton1}
		}
	}
}

function Txmlbutton2()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton2} !=  FALSE
		{
			if ${Txmlbutton2} == FALSE
			{
					Txmlbutton2:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton2]:SetText[${uxmlbuttontext2a}]		
					UIElement[ghost1].FindChild[xmlbutton2].Font:SetColor[${zxmlcolor2}]
					Press ${vxmlbutton2}
			}
			else
			{
					Txmlbutton2:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton2]:SetText[${uxmlbuttontext2}]		
					UIElement[ghost1].FindChild[xmlbutton2].Font:SetColor[${yxmlcolor2}]
					Press ${vxmlbutton2a}
			}
		}		
		else
		{
			Press ${vxmlbutton2}
		}
	}
	else
	{
		if ${exmlbutton2} !=  FALSE
		{
			if ${Txmlbutton2} == FALSE
			{
					Txmlbutton2:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton2]:SetText[${uxmlbuttontext2a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton2].Font:SetColor[${zxmlcolor2}]
					Press ${vxmlbutton2}
			}
			else
			{
					Txmlbutton2:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton2]:SetText[${uxmlbuttontext2}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton2].Font:SetColor[${yxmlcolor2}]
					Press ${vxmlbutton2a}
			}
		}
		else
		{
			Press ${vxmlbutton2}	
		}
	}
}

function Txmlbutton3()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton3} !=  FALSE
		{
			if ${Txmlbutton3} == FALSE
			{
					Txmlbutton3:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton3]:SetText[${uxmlbuttontext3a}]		
					UIElement[ghost1].FindChild[xmlbutton3].Font:SetColor[${zxmlcolor3}]
					Press ${vxmlbutton3}
			}
			else
			{
					Txmlbutton3:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton3]:SetText[${uxmlbuttontext3}]
					UIElement[ghost1].FindChild[xmlbutton3].Font:SetColor[${yxmlcolor3}]
					Press ${vxmlbutton3a}
			}
		}		
		else
		{
			Press ${vxmlbutton3}
		}
	}
	else
	{
		if ${exmlbutton3} !=  FALSE
		{
			if ${Txmlbutton3} == FALSE
				{
					Txmlbutton3:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton3]:SetText[${uxmlbuttontext3a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton3].Font:SetColor[${zxmlcolor3}]
					Press ${vxmlbutton3}
				}
			else
				{
					Txmlbutton3:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton3]:SetText[${uxmlbuttontext3}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton3].Font:SetColor[${yxmlcolor3}]
					Press ${vxmlbutton3a}
				}
		}
		else
		{
			Press ${vxmlbutton3}	
		}
	}
}
function Txmlbutton4()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton4} !=  FALSE
		{
			if ${Txmlbutton4} == FALSE
			{
					Txmlbutton4:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton4]:SetText[${uxmlbuttontext4a}]		
					UIElement[ghost1].FindChild[xmlbutton4].Font:SetColor[${zxmlcolor4}]
					Press ${vxmlbutton4}
			}
			else
			{
					Txmlbutton4:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton4]:SetText[${uxmlbuttontext4}]		
					UIElement[ghost1].FindChild[xmlbutton4].Font:SetColor[${yxmlcolor4}]
					Press ${vxmlbutton4a}
			}
		}		
		else
		{
			Press ${vxmlbutton4}
		}
	}
	else
	{
		if ${exmlbutton4} !=  FALSE
		{
			if ${Txmlbutton4} == FALSE
				{
					Txmlbutton4:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton4]:SetText[${uxmlbuttontext4a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton4].Font:SetColor[${zxmlcolor4}]
					Press ${vxmlbutton4}
				}
			else
				{
					Txmlbutton4:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton4]:SetText[${uxmlbuttontext4}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton4].Font:SetColor[${yxmlcolor4}]
					Press ${vxmlbutton4a}
				}
		}
		else
		{
			Press ${vxmlbutton4}	
		}
	}
}
function Txmlbutton5()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton5} !=  FALSE
		{
			if ${Txmlbutton5} == FALSE
			{
					Txmlbutton5:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton5]:SetText[${uxmlbuttontext5a}]
					UIElement[ghost1].FindChild[xmlbutton5].Font:SetColor[${zxmlcolor5}]
					Press ${vxmlbutton5}
			}
			else
			{
					Txmlbutton5:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton5]:SetText[${uxmlbuttontext5}]		
					UIElement[ghost1].FindChild[xmlbutton5].Font:SetColor[${yxmlcolor5}]
					Press ${vxmlbutton5a}
			}
		}		
		else
		{
			Press ${vxmlbutton5}
		}
	}
	else
	{
		if ${exmlbutton5} !=  FALSE
		{
			if ${Txmlbutton5} == FALSE
				{
					Txmlbutton5:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton5]:SetText[${uxmlbuttontext5a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton5].Font:SetColor[${zxmlcolor5}]
					Press ${vxmlbutton5}
				}
			else
				{
					Txmlbutton5:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton5]:SetText[${uxmlbuttontext5}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton5].Font:SetColor[${yxmlcolor5}]
					Press ${vxmlbutton5a}
				}
		}
		else
		{
			Press ${vxmlbutton5}	
		}
	}
}
function Txmlbutton6()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton6} !=  FALSE
		{
			if ${Txmlbutton6} == FALSE
			{
					Txmlbutton6:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton6]:SetText[${uxmlbuttontext6a}]		
					UIElement[ghost1].FindChild[xmlbutton6].Font:SetColor[${zxmlcolor6}]
					Press ${vxmlbutton6}
			}
			else
			{
					Txmlbutton6:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton6]:SetText[${uxmlbuttontext6}]		
					UIElement[ghost1].FindChild[xmlbutton6].Font:SetColor[${yxmlcolor6}]
					Press ${vxmlbutton6a}
			}
		}		
		else
		{
			Press ${vxmlbutton6}
		}
	}
	else
	{
		if ${exmlbutton6} !=  FALSE
		{
			if ${Txmlbutton6} == FALSE
				{
					Txmlbutton6:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton6]:SetText[${uxmlbuttontext6a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton6].Font:SetColor[${zxmlcolor6}]
					Press ${vxmlbutton6}
				}
			else
				{
					Txmlbutton6:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton6]:SetText[${uxmlbuttontext6}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton6].Font:SetColor[${yxmlcolor6}]
					Press ${vxmlbutton6a}
				}
		}
		else
		{
			Press ${vxmlbutton6}	
		}
	}
}

function Txmlbutton7()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton7} !=  FALSE
		{
			if ${Txmlbutton7} == FALSE
			{
					Txmlbutton7:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton7]:SetText[${uxmlbuttontext7a}]		
					UIElement[ghost1].FindChild[xmlbutton7].Font:SetColor[${zxmlcolor7}]
					Press ${vxmlbutton7}
			}
			else
			{
					Txmlbutton7:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton7]:SetText[${uxmlbuttontext7}]		
					UIElement[ghost1].FindChild[xmlbutton7].Font:SetColor[${yxmlcolor7}]
					Press ${vxmlbutton7a}
			}
		}		
		else
		{
			Press ${vxmlbutton7}
		}
	}
	else
	{
		if ${exmlbutton7} !=  FALSE
		{
			if ${Txmlbutton7} == FALSE
				{
					Txmlbutton7:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton7]:SetText[${uxmlbuttontext7a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton7].Font:SetColor[${zxmlcolor7}]
					Press ${vxmlbutton7}
				}
			else
				{
					Txmlbutton7:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton7]:SetText[${uxmlbuttontext7}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton7].Font:SetColor[${yxmlcolor7}]
					Press ${vxmlbutton7a}
				}
		}
		else
		{
			Press ${vxmlbutton7}	
		}
	}
}

function Txmlbutton8()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton8} !=  FALSE
		{
			if ${Txmlbutton8} == FALSE
			{
					Txmlbutton8:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton8]:SetText[${uxmlbuttontext8a}]		
					UIElement[ghost1].FindChild[xmlbutton8].Font:SetColor[${zxmlcolor8}]
					Press ${vxmlbutton8}
			}
			else
			{
					Txmlbutton8:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton8]:SetText[${uxmlbuttontext8}]		
					UIElement[ghost1].FindChild[xmlbutton8].Font:SetColor[${yxmlcolor8}]
					Press ${vxmlbutton8a}
			}
		}		
		else
		{
			Press ${vxmlbutton8}
		}
	}
	else
	{
		if ${exmlbutton8} !=  FALSE
		{
			if ${Txmlbutton8} == FALSE
				{
					Txmlbutton8:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton8]:SetText[${uxmlbuttontext8a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton8].Font:SetColor[${zxmlcolor8}]
					Press ${vxmlbutton8}
				}
			else
				{
					Txmlbutton8:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton8]:SetText[${uxmlbuttontext8}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton8].Font:SetColor[${yxmlcolor8}]
					Press ${vxmlbutton8a}
				}
		}
		else
		{
			Press ${vxmlbutton8}	
		}
	}
}

function Txmlbutton9()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton9} !=  FALSE
		{
			if ${Txmlbutton9} == FALSE
			{
					Txmlbutton9:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton9]:SetText[${uxmlbuttontext9a}]		
					UIElement[ghost1].FindChild[xmlbutton9].Font:SetColor[${zxmlcolor9}]
					Press ${vxmlbutton9}
			}
			else
			{
					Txmlbutton9:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton9]:SetText[${uxmlbuttontext9}]		
					UIElement[ghost1].FindChild[xmlbutton9].Font:SetColor[${yxmlcolor9}]
					Press ${vxmlbutton9a}
			}
		}		
		else
		{
			Press ${vxmlbutton9}
		}
	}
	else
	{
		if ${exmlbutton9} !=  FALSE
		{
			if ${Txmlbutton9} == FALSE
				{
					Txmlbutton9:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton9]:SetText[${uxmlbuttontext9a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton9].Font:SetColor[${zxmlcolor9}]
					Press ${vxmlbutton9}
				}
			else
				{
					Txmlbutton9:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton9]:SetText[${uxmlbuttontext9}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton9].Font:SetColor[${yxmlcolor9}]
					Press ${vxmlbutton9a}
				}
		}
		else
		{
			Press ${vxmlbutton9}	
		}
	}
}

function Txmlbutton10()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton10} !=  FALSE
		{
			if ${Txmlbutton10} == FALSE
			{
					Txmlbutton10:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton10]:SetText[${uxmlbuttontext10a}]		
					UIElement[ghost1].FindChild[xmlbutton10].Font:SetColor[${zxmlcolor10}]
					Press ${vxmlbutton10}
			}
			else
			{
					Txmlbutton10:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton10]:SetText[${uxmlbuttontext10}]		
					UIElement[ghost1].FindChild[xmlbutton10].Font:SetColor[${yxmlcolor10}]
					Press ${vxmlbutton10a}
			}
		}		
		else
		{
			Press ${vxmlbutton10}
		}
	}
	else
	{
		if ${exmlbutton10} !=  FALSE
		{
			if ${Txmlbutton10} == FALSE
				{
					Txmlbutton10:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton10]:SetText[${uxmlbuttontext10a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton10].Font:SetColor[${zxmlcolor10}]
					Press ${vxmlbutton10}
				}
			else
				{
					Txmlbutton10:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton10]:SetText[${uxmlbuttontext10}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton10].Font:SetColor[${yxmlcolor10}]
					Press ${vxmlbutton10a}
				}
		}
		else
		{
			Press ${vxmlbutton10}	
		}
	}
}

function Txmlbutton11()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton11} !=  FALSE
		{
			if ${Txmlbutton11} == FALSE
			{
					Txmlbutton11:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton11]:SetText[${uxmlbuttontext11a}]		
					UIElement[ghost1].FindChild[xmlbutton11].Font:SetColor[${zxmlcolor11}]
					Press ${vxmlbutton11}
			}
			else
			{
					Txmlbutton11:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton11]:SetText[${uxmlbuttontext11}]		
					UIElement[ghost1].FindChild[xmlbutton11].Font:SetColor[${yxmlcolor11}]
					Press ${vxmlbutton11a}
			}
		}		
		else
		{
			Press ${vxmlbutton11}
		}
	}
	else
	{
		if ${exmlbutton11} !=  FALSE
		{
			if ${Txmlbutton11} == FALSE
				{
					Txmlbutton11:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton11]:SetText[${uxmlbuttontext11a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton11].Font:SetColor[${zxmlcolor11}]
					Press ${vxmlbutton11}
				}
			else
				{
					Txmlbutton11:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton11]:SetText[${uxmlbuttontext11}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton11].Font:SetColor[${yxmlcolor11}]
					Press ${vxmlbutton11a}
				}
		}
		else
		{
			Press ${vxmlbutton11}	
		}
	}
}

function Txmlbutton12()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton12} !=  FALSE
		{
			if ${Txmlbutton12} == FALSE
			{
					Txmlbutton12:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton12]:SetText[${uxmlbuttontext12a}]		
					UIElement[ghost1].FindChild[xmlbutton12].Font:SetColor[${zxmlcolor12}]
					Press ${vxmlbutton12}
			}
			else
			{
					Txmlbutton12:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton12]:SetText[${uxmlbuttontext12}]		
					UIElement[ghost1].FindChild[xmlbutton12].Font:SetColor[${yxmlcolor12}]
					Press ${vxmlbutton12a}
			}
		}		
		else
		{
			Press ${vxmlbutton12}
		}
	}
	else
	{
		if ${exmlbutton12} !=  FALSE
		{
			if ${Txmlbutton12} == FALSE
				{
					Txmlbutton12:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton12]:SetText[${uxmlbuttontext12a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton12].Font:SetColor[${zxmlcolor12}]
					Press ${vxmlbutton12}
				}
			else
				{
					Txmlbutton11:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton12]:SetText[${uxmlbuttontext12}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton12].Font:SetColor[${yxmlcolor12}]
					Press ${vxmlbutton12a}
				}
		}
		else
		{
			Press ${vxmlbutton12}	
		}
	}
}

function Txmlbutton13()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton13} !=  FALSE
		{
			if ${Txmlbutton13} == FALSE
			{
					Txmlbutton13:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton13]:SetText[${uxmlbuttontext13a}]		
					UIElement[ghost1].FindChild[xmlbutton13].Font:SetColor[${zxmlcolor13}]
					Press ${vxmlbutton13}
			}
			else
			{
					Txmlbutton13:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton13]:SetText[${uxmlbuttontext13}]		
					UIElement[ghost1].FindChild[xmlbutton13].Font:SetColor[${yxmlcolor13}]
					Press ${vxmlbutton13a}
			}
		}		
		else
		{
			Press ${vxmlbutton13}
		}
	}
	else
	{
		if ${exmlbutton13} !=  FALSE
		{
			if ${Txmlbutton13} == FALSE
				{
					Txmlbutton13:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton13]:SetText[${uxmlbuttontext13a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton13].Font:SetColor[${zxmlcolor13}]
					Press ${vxmlbutton13}
				}
			else
				{
					Txmlbutton13:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton13]:SetText[${uxmlbuttontext13}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton13].Font:SetColor[${yxmlcolor13}]
					Press ${vxmlbutton13a}
				}
		}
		else
		{
			Press ${vxmlbutton13}	
		}
	}
}

function Txmlbutton14()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton14} !=  FALSE
		{
			if ${Txmlbutton14} == FALSE
			{
					Txmlbutton14:Set[TRUE]
					UIElement[ghost1].FindChild[xmlbutton14]:SetText[${uxmlbuttontext14a}]		
					UIElement[ghost1].FindChild[xmlbutton14].Font:SetColor[${zxmlcolor14}]
					Press ${vxmlbutton14}
			}
			else
			{
					Txmlbutton14:Set[FALSE]
					UIElement[ghost1].FindChild[xmlbutton14]:SetText[${uxmlbuttontext14}]		
					UIElement[ghost1].FindChild[xmlbutton14].Font:SetColor[${yxmlcolor14}]
					Press ${vxmlbutton14a}
			}
		}		
		else
		{
			Press ${vxmlbutton14}
		}
	}
	else
	{
		if ${exmlbutton14} !=  FALSE
		{
			if ${Txmlbutton14} == FALSE
				{
					Txmlbutton14:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton14]:SetText[${uxmlbuttontext14a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton14].Font:SetColor[${zxmlcolor14}]
					Press ${vxmlbutton14}
				}
			else
				{
					Txmlbutton14:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton14]:SetText[${uxmlbuttontext14}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab1}].FindChild[xmlbutton14].Font:SetColor[${yxmlcolor14}]
					Press ${vxmlbutton14a}
				}
		}
		else
		{
			Press ${vxmlbutton14}	
		}
	}
}
function Txmlbutton15()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton15} !=  FALSE
		{
			if ${Txmlbutton15} == FALSE
			{
					Txmlbutton15:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton15]:SetText[${uxmlbuttontext15a}]		
					UIElement[ghost2].FindChild[xmlbutton15].Font:SetColor[${zxmlcolor15}]
					Press ${vxmlbutton15}
			}
			else
			{
					Txmlbutton15:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton15]:SetText[${uxmlbuttontext15}]		
					UIElement[ghost2].FindChild[xmlbutton15].Font:SetColor[${yxmlcolor15}]
					Press ${vxmlbutton15a}
			}
		}		
		else
		{
			Press ${vxmlbutton15}
		}
	}
	else
	{
		if ${exmlbutton15} !=  FALSE
		{
			if ${Txmlbutton15} == FALSE
				{
					Txmlbutton15:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton15]:SetText[${uxmlbuttontext15a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton15].Font:SetColor[${zxmlcolor15}]
					Press ${vxmlbutton15}
				}
			else
				{
					Txmlbutton15:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton15]:SetText[${uxmlbuttontext15}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton15].Font:SetColor[${yxmlcolor15}]
					Press ${vxmlbutton15a}
				}
		}
		else
		{
			Press ${vxmlbutton15}	
		}
	}
}
function Txmlbutton16()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton16} !=  FALSE
		{
			if ${Txmlbutton16} == FALSE
			{
					Txmlbutton16:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton16]:SetText[${uxmlbuttontext16a}]		
					UIElement[ghost2].FindChild[xmlbutton16].Font:SetColor[${zxmlcolor16}]
					Press ${vxmlbutton16}
			}
			else
			{
					Txmlbutton16:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton16]:SetText[${uxmlbuttontext16}]		
					UIElement[ghost2].FindChild[xmlbutton16].Font:SetColor[${yxmlcolor16}]
					Press ${vxmlbutton16a}
			}
		}		
		else
		{
			Press ${vxmlbutton16}
		}
	}
	else
	{
		if ${exmlbutton16} !=  FALSE
		{
			if ${Txmlbutton16} == FALSE
				{
					Txmlbutton16:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton16]:SetText[${uxmlbuttontext16a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton16].Font:SetColor[${zxmlcolor16}]
					Press ${vxmlbutton16}
				}
			else
				{
					Txmlbutton16:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton16]:SetText[${uxmlbuttontext16}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton16].Font:SetColor[${yxmlcolor16}]
					Press ${vxmlbutton16a}
				}
		}
		else
		{
			Press ${vxmlbutton16}	
		}
	}
}
function Txmlbutton17()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton17} !=  FALSE
		{
			if ${Txmlbutton17} == FALSE
			{
					Txmlbutton17:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton17]:SetText[${uxmlbuttontext17a}]		
					UIElement[ghost2].FindChild[xmlbutton17].Font:SetColor[${zxmlcolor17}]
					Press ${vxmlbutton17}
			}
			else
			{
					Txmlbutton17:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton17]:SetText[${uxmlbuttontext17}]		
					UIElement[ghost2].FindChild[xmlbutton17].Font:SetColor[${yxmlcolor17}]
					Press ${vxmlbutton17a}
			}
		}		
		else
		{
			Press ${vxmlbutton15}
		}
	}
	else
	{
		if ${exmlbutton17} !=  FALSE
		{
			if ${Txmlbutton17} == FALSE
				{
					Txmlbutton17:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton17]:SetText[${uxmlbuttontext17a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton17].Font:SetColor[${zxmlcolor17}]
					Press ${vxmlbutton17}
				}
			else
				{
					Txmlbutton17:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton17]:SetText[${uxmlbuttontext17}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton17].Font:SetColor[${yxmlcolor17}]
					Press ${vxmlbutton17a}
				}
		}
		else
		{
			Press ${vxmlbutton17}	
		}
	}
}
function Txmlbutton18()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton18} !=  FALSE
		{
			if ${Txmlbutton18} == FALSE
			{
					Txmlbutton18:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton18]:SetText[${uxmlbuttontext18a}]		
					UIElement[ghost2].FindChild[xmlbutton18].Font:SetColor[${zxmlcolor18}]
					Press ${vxmlbutton18}
			}
			else
			{
					Txmlbutton18:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton18]:SetText[${uxmlbuttontext18}]		
					UIElement[ghost2].FindChild[xmlbutton18].Font:SetColor[${yxmlcolor18}]
					Press ${vxmlbutton18a}
			}
		}		
		else
		{
			Press ${vxmlbutton18}
		}
	}
	else
	{
		if ${exmlbutton18} !=  FALSE
		{
			if ${Txmlbutton18} == FALSE
				{
					Txmlbutton18:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton18]:SetText[${uxmlbuttontext18a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton18].Font:SetColor[${zxmlcolor18}]
					Press ${vxmlbutton18}
				}
			else
				{
					Txmlbutton18:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton18]:SetText[${uxmlbuttontext18}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton18].Font:SetColor[${yxmlcolor18}]
					Press ${vxmlbutton18a}
				}
		}
		else
		{
			Press ${vxmlbutton18}	
		}
	}
}
function Txmlbutton19()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton19} !=  FALSE
		{
			if ${Txmlbutton19} == FALSE
			{
					Txmlbutton19:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton19]:SetText[${uxmlbuttontext19a}]		
					UIElement[ghost2].FindChild[xmlbutton19].Font:SetColor[${zxmlcolor19}]
					Press ${vxmlbutton19}
			}
			else
			{
					Txmlbutton19:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton19]:SetText[${uxmlbuttontext19}]		
					UIElement[ghost2].FindChild[xmlbutton19].Font:SetColor[${yxmlcolor19}]
					Press ${vxmlbutton19a}
			}
		}		
		else
		{
			Press ${vxmlbutton19}
		}
	}
	else
	{
		if ${exmlbutton19} !=  FALSE
		{
			if ${Txmlbutton19} == FALSE
				{
					Txmlbutton19:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton19]:SetText[${uxmlbuttontext19a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton19].Font:SetColor[${zxmlcolor19}]
					Press ${vxmlbutton19}
				}
			else
				{
					Txmlbutton19:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton19]:SetText[${uxmlbuttontext19}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton19].Font:SetColor[${yxmlcolor19}]
					Press ${vxmlbutton19a}
				}
		}
		else
		{
			Press ${vxmlbutton19}	
		}
	}
}
function Txmlbutton20()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton20} !=  FALSE
		{
			if ${Txmlbutton20} == FALSE
			{
					Txmlbutton20:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton20]:SetText[${uxmlbuttontext20a}]		
					UIElement[ghost2].FindChild[xmlbutton20].Font:SetColor[${zxmlcolor20}]
					Press ${vxmlbutton20}
			}
			else
			{
					Txmlbutton20:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton20]:SetText[${uxmlbuttontext20}]		
					UIElement[ghost2].FindChild[xmlbutton20].Font:SetColor[${yxmlcolor20}]
					Press ${vxmlbutton20a}
			}
		}		
		else
		{
			Press ${vxmlbutton20}
		}
	}
	else
	{
		if ${exmlbutton20} !=  FALSE
		{
			if ${Txmlbutton20} == FALSE
				{
					Txmlbutton20:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton20]:SetText[${uxmlbuttontext20a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton20].Font:SetColor[${zxmlcolor20}]
					Press ${vxmlbutton20}
				}
			else
				{
					Txmlbutton20:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton20]:SetText[${uxmlbuttontext20}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton20].Font:SetColor[${yxmlcolor20}]
					Press ${vxmlbutton20a}
				}
		}
		else
		{
			Press ${vxmlbutton20}	
		}
	}
}
function Txmlbutton21()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton21} !=  FALSE
		{
			if ${Txmlbutton21} == FALSE
			{
					Txmlbutton21:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton21]:SetText[${uxmlbuttontext21a}]		
					UIElement[ghost2].FindChild[xmlbutton21].Font:SetColor[${zxmlcolor21}]
					Press ${vxmlbutton21}
			}
			else
			{
					Txmlbutton21:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton21]:SetText[${uxmlbuttontext21}]		
					UIElement[ghost2].FindChild[xmlbutton21].Font:SetColor[${yxmlcolor21}]
					Press ${vxmlbutton21a}
			}
		}		
		else
		{
			Press ${vxmlbutton21}
		}
	}
	else
	{
		if ${exmlbutton21} !=  FALSE
		{
			if ${Txmlbutton21} == FALSE
				{
					Txmlbutton21:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton21]:SetText[${uxmlbuttontext21a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton21].Font:SetColor[${zxmlcolor21}]
					Press ${vxmlbutton21}
				}
			else
				{
					Txmlbutton21:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton21]:SetText[${uxmlbuttontext21}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton21].Font:SetColor[${yxmlcolor21}]
					Press ${vxmlbutton21a}
				}
		}
		else
		{
			Press ${vxmlbutton21}	
		}
	}
}

function Txmlbutton22()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton22} !=  FALSE
		{
			if ${Txmlbutton22} == FALSE
			{
					Txmlbutton22:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton22]:SetText[${uxmlbuttontext22a}]		
					UIElement[ghost2].FindChild[xmlbutton22].Font:SetColor[${zxmlcolor22}]
					Press ${vxmlbutton22}
			}
			else
			{
					Txmlbutton22:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton22]:SetText[${uxmlbuttontext22}]		
					UIElement[ghost2].FindChild[xmlbutton22].Font:SetColor[${yxmlcolor22}]
					Press ${vxmlbutton22a}
			}
		}		
		else
		{
			Press ${vxmlbutton22}
		}
	}
	else
	{
		if ${exmlbutton22} !=  FALSE
		{
			if ${Txmlbutton22} == FALSE
				{
					Txmlbutton22:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton22]:SetText[${uxmlbuttontext22a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton22].Font:SetColor[${zxmlcolor22}]
					Press ${vxmlbutton22}
				}
			else
				{
					Txmlbutton22:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton22]:SetText[${uxmlbuttontext22}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton22].Font:SetColor[${yxmlcolor22}]
					Press ${vxmlbutton22a}
				}
		}
		else
		{
			Press ${vxmlbutton22}	
		}
	}
}
function Txmlbutton23()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton23} !=  FALSE
		{
			if ${Txmlbutton23} == FALSE
			{
					Txmlbutton23:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton23]:SetText[${uxmlbuttontext23a}]		
					UIElement[ghost2].FindChild[xmlbutton23].Font:SetColor[${zxmlcolor23}]
					Press ${vxmlbutton23}
			}
			else
			{
					Txmlbutton23:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton23]:SetText[${uxmlbuttontext23}]		
					UIElement[ghost2].FindChild[xmlbutton23].Font:SetColor[${yxmlcolor23}]
					Press ${vxmlbutton23a}
			}
		}		
		else
		{
			Press ${vxmlbutton23}
		}
	}
	else
	{
		if ${exmlbutton23} !=  FALSE
		{
			if ${Txmlbutton23} == FALSE
				{
					Txmlbutton23:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton23]:SetText[${uxmlbuttontext23a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton23].Font:SetColor[${zxmlcolor23}]
					Press ${vxmlbutton23}
				}
			else
				{
					Txmlbutton23:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton23]:SetText[${uxmlbuttontext23}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton23].Font:SetColor[${yxmlcolor23}]
					Press ${vxmlbutton23a}
				}
		}
		else
		{
			Press ${vxmlbutton23}	
		}
	}
}
function Txmlbutton24()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton24} !=  FALSE
		{
			if ${Txmlbutton24} == FALSE
			{
					Txmlbutton24:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton24]:SetText[${uxmlbuttontext24a}]		
					UIElement[ghost2].FindChild[xmlbutton24].Font:SetColor[${zxmlcolor24}]
					Press ${vxmlbutton24}
			}
			else
			{
					Txmlbutton24:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton24]:SetText[${uxmlbuttontext24}]		
					UIElement[ghost2].FindChild[xmlbutton24].Font:SetColor[${yxmlcolor24}]
					Press ${vxmlbutton24a}
			}
		}		
		else
		{
			Press ${vxmlbutton24}
		}
	}
	else
	{
		if ${exmlbutton24} !=  FALSE
		{
			if ${Txmlbutton24} == FALSE
				{
					Txmlbutton24:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton24]:SetText[${uxmlbuttontext24a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton24].Font:SetColor[${zxmlcolor24}]
					Press ${vxmlbutton24}
				}
			else
				{
					Txmlbutton24:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton24]:SetText[${uxmlbuttontext24}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton24].Font:SetColor[${yxmlcolor24}]
					Press ${vxmlbutton24a}
				}
		}
		else
		{
			Press ${vxmlbutton24}	
		}
	}
}
function Txmlbutton25()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton25} !=  FALSE
		{
			if ${Txmlbutton25} == FALSE
			{
					Txmlbutton25:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton25]:SetText[${uxmlbuttontext25a}]		
					UIElement[ghost2].FindChild[xmlbutton25].Font:SetColor[${zxmlcolor25}]
					Press ${vxmlbutton25}
			}
			else
			{
					Txmlbutton25:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton25]:SetText[${uxmlbuttontext25}]		
					UIElement[ghost2].FindChild[xmlbutton25].Font:SetColor[${yxmlcolor25}]
					Press ${vxmlbutton25a}
			}
		}		
		else
		{
			Press ${vxmlbutton25}
		}
	}
	else
	{
		if ${exmlbutton25} !=  FALSE
		{
			if ${Txmlbutton25} == FALSE
				{
					Txmlbutton25:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton25]:SetText[${uxmlbuttontext25a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton25].Font:SetColor[${zxmlcolor25}]
					Press ${vxmlbutton25}
				}
			else
				{
					Txmlbutton25:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton25]:SetText[${uxmlbuttontext25}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton25].Font:SetColor[${yxmlcolor25}]
					Press ${vxmlbutton25a}
				}
		}
		else
		{
			Press ${vxmlbutton25}	
		}
	}
}
function Txmlbutton26()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton26} !=  FALSE
		{
			if ${Txmlbutton26} == FALSE
			{
					Txmlbutton26:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton26]:SetText[${uxmlbuttontext26a}]		
					UIElement[ghost2].FindChild[xmlbutton26].Font:SetColor[${zxmlcolor26}]
					Press ${vxmlbutton26}
			}
			else
			{
					Txmlbutton26:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton26]:SetText[${uxmlbuttontext26}]		
					UIElement[ghost2].FindChild[xmlbutton26].Font:SetColor[${yxmlcolor26}]
					Press ${vxmlbutton26a}
			}
		}		
		else
		{
			Press ${vxmlbutton26}
		}
	}
	else
	{
		if ${exmlbutton26} !=  FALSE
		{
			if ${Txmlbutton26} == FALSE
				{
					Txmlbutton26:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton26]:SetText[${uxmlbuttontext26a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton26].Font:SetColor[${zxmlcolor26}]
					Press ${vxmlbutton26}
				}
			else
				{
					Txmlbutton26:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton26]:SetText[${uxmlbuttontext26}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton26].Font:SetColor[${yxmlcolor26}]
					Press ${vxmlbutton26a}
				}
		}
		else
		{
			Press ${vxmlbutton26}	
		}
	}
}
function Txmlbutton27()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton27} !=  FALSE
		{
			if ${Txmlbutton27} == FALSE
			{
					Txmlbutton27:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton27]:SetText[${uxmlbuttontext27a}]		
					UIElement[ghost2].FindChild[xmlbutton27].Font:SetColor[${zxmlcolor27}]
					Press ${vxmlbutton27}
			}
			else
			{
					Txmlbutton27:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton27]:SetText[${uxmlbuttontext27}]		
					UIElement[ghost2].FindChild[xmlbutton27].Font:SetColor[${yxmlcolor27}]
					Press ${vxmlbutton27a}
			}
		}		
		else
		{
			Press ${vxmlbutton27}
		}
	}
	else
	{
		if ${exmlbutton27} !=  FALSE
		{
			if ${Txmlbutton27} == FALSE
				{
					Txmlbutton27:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton27]:SetText[${uxmlbuttontext27a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton27].Font:SetColor[${zxmlcolor27}]
					Press ${vxmlbutton27}
				}
			else
				{
					Txmlbutton27:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton27]:SetText[${uxmlbuttontext27}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton27].Font:SetColor[${yxmlcolor27}]
					Press ${vxmlbutton27a}
				}
		}
		else
		{
			Press ${vxmlbutton27}	
		}
	}
}
function Txmlbutton28()
{
	if ${uiversion.Equal[Ghost]}
	{		
		if ${exmlbutton28} !=  FALSE
		{
			if ${Txmlbutton28} == FALSE
			{
					Txmlbutton28:Set[TRUE]
					UIElement[ghost2].FindChild[xmlbutton28]:SetText[${uxmlbuttontext28a}]		
					UIElement[ghost2].FindChild[xmlbutton28].Font:SetColor[${zxmlcolor28}]
					Press ${vxmlbutton28}
			}
			else
			{
					Txmlbutton28:Set[FALSE]
					UIElement[ghost2].FindChild[xmlbutton28]:SetText[${uxmlbuttontext28}]		
					UIElement[ghost2].FindChild[xmlbutton28].Font:SetColor[${yxmlcolor28}]
					Press ${vxmlbutton28a}
			}
		}		
		else
		{
			Press ${vxmlbutton28}
		}
	}
	else
	{
		if ${exmlbutton28} !=  FALSE
		{
			if ${Txmlbutton28} == FALSE
				{
					Txmlbutton28:Set[TRUE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton28]:SetText[${uxmlbuttontext28a}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton28].Font:SetColor[${zxmlcolor28}]
					Press ${vxmlbutton28}
				}
			else
				{
					Txmlbutton28:Set[FALSE]
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton28]:SetText[${uxmlbuttontext28}]		
					UIElement[${WINDOWELEMENT}].FindChild[${TABCONTROLELEMENT}].FindChild[${xmltab2}].FindChild[xmlbutton28].Font:SetColor[${yxmlcolor28}]
					Press ${vxmlbutton28a}
				}
		}
		else
		{
			Press ${vxmlbutton28}	
		}
	}
}

;***********************************************************************************************************************
;Check for buttonname on click
;***********************************************************************************************************************

function getbuttonname()
{
ibethis:Set[1]
call domykeyactions
}

;***********************************************************************************************************************
;Check for updates, launches myupdate.iss and ends eqisbuttons.iss and Rollback
;***********************************************************************************************************************

function checkforupdate()
{
	Execute httpget -file "./myupdate.iss" http://dl.dropbox.com/u/4241804/Release/myupdate.iss
	wait 30
	call export
	wait 60
	run ./EQ/myupdate.iss ${cversion} ${cssbversion}
	endscript eqisbuttons
}

function rollbackupdate()
{
	MessageBox "This will rollback EQ Hotbuttons to your previous running version. Check console for update messages and any errors (default console key is ~}.  Click OK to continue!" 
	echo Restoring files!
	ISBoxerUI:PopupText["Rolling back files",5000]
	cp -overwrite "./eqisbuttons.mybak" "./eqisbuttons.iss"
	wait 10
	cp -overwrite "./eqbuttonslib.mybak" "./eqbuttonslib.iss"
	wait 10
	cp -overwrite "./myupdate.mybak" "./myupdate.iss"
	wait 10
	cp -overwrite "./UI/eqisbuttons.mybak" "./UI/eqisbuttons.xml"
	wait 10
	cp -overwrite "./UI/eqisbuttonsls.mybak" "./UI/eqisbuttonsls.xml"
	wait 10
	cp -overwrite "./UI/tab1.mybak" "./UI/tab1.xml"
	wait 10
	cp -overwrite "./UI/tab2.mybak" "./UI/tab2.xml"
	wait 10
	cp -overwrite "./UI/tab1ls.mybak" "./UI/tab1ls.xml"
	wait 10
	cp -overwrite "./UI/tab2ls.mybak" "./UI/tab2ls.xml"
	wait 10
	cp -overwrite "./UI/xmluisettings.mybak" "./UI/xmluisettings.xml"
	wait 10
	cp -overwrite "./UI/gxmluisettings.mybak" "./UI/gxmluisettings.xml"
	wait 10
	cp -overwrite "./UI/eqisghost1.mybak" "./UI/eqisghost1.xml"
	wait 10
	cp -overwrite "./UI/eqisghost2.mybak" "./UI/eqisghost2.xml"
	wait 10
	cp -overwrite "./UI/eqisbuttonsg.mybak" "./UI/eqisbuttonsg.xml"
	wait 10
	cp -overwrite "./UI/shitbuilder.mybak" "./UI/shitbuilder.xml"
	wait 10
	cp -overwrite "./shitbuilder.mybak" "./shitbuilder.iss"
	wait 100
	echo Rollback complete!
	ISBoxerUI:PopupText["Rollback Is Complete",5000]
	MessageBox "Rollback should be complete. Check console for messages and any errors (default console key is ~}.  Click OK to continue!" 
	echo Ending EQ Hotbuttons, to reload type run ./eq/eqisbuttons
	endscript eqisbuttons
}
;***********************************************************************************************************************
;Reload UI after settings changes from Setup tab
;***********************************************************************************************************************

function refresh()
{
	if ${uiversion.Equal[Portrait]}
	{
		ui -unload "${MYUIPATH}/eqisghost1.xml"
		ui -unload "${MYUIPATH}/eqisghost2.xml"
		ui -unload "${MYUIPATH}/eqisbuttons.xml"
		ui -load "${MYUIPATH}/eqisbuttons.xml"
		call LoadSettings
	}
	if ${uiversion.Equal[Landscape]}
	{
		ui -unload "${MYUIPATH}/eqisghost1.xml"
		ui -unload "${MYUIPATH}/eqisghost2.xml"
		ui -unload "${MYUIPATH}/eqisbuttonsls.xml"
		ui -load "${MYUIPATH}/eqisbuttonsls.xml"
		call LoadSettings
	}
	if ${uiversion.Equal[Ghost]}
	{
	ui -unload "${MYUIPATH}/eqisghost1.xml"
	ui -unload "${MYUIPATH}/eqisghost2.xml"
	ui -unload "${MYUIPATH}/eqisbuttonsls.xml"
	ui -unload "${MYUIPATH}/eqisbuttons.xml"
	ui -reload "${MYUIPATH}/eqisghost1.xml"
	ui -reload "${MYUIPATH}/eqisghost2.xml"
	UIElement[ghost1]:SetX[${myxloc1}]
	UIElement[ghost1]:SetY[${myyloc1}]
	UIElement[ghost2]:SetX[${myxloc2}]
	UIElement[ghost2]:SetY[${myyloc2}]
	UIElement[ghost1]:SetWidth[${myxsize1}]
	UIElement[ghost2]:SetWidth[${myxsize2}]
	UIElement[ghost1]:SetHeight[${myysize1}]
	UIElement[ghost2]:SetHeight[${myysize2}]
	call LoadSettings
	}


}

;***********************************************************************************************************************
;Export settings to ${LavishScript.HomeDirectory}/Scripts/eq/Config/eqisbuttonsconfig.xml
;***********************************************************************************************************************

function export()
{
	Buttons.FindSetting[mytexteditor]:Set[${mytexteditor}]
	Buttons.FindSetting[uiversion]:Set[${uiversion}]
	Buttons.FindSetting[myalpha]:Set[${myalpha}]
	Buttons.FindSetting[xmltab1]:Set[${xmltab1}]
	Buttons.FindSetting[xmltab2]:Set[${xmltab2}]
	Buttons.FindSetting[myxloc1]:Set[${myxloc1}]
	Buttons.FindSetting[myxloc2]:Set[${myxloc2}]
	Buttons.FindSetting[myyloc1]:Set[${myyloc1}]
	Buttons.FindSetting[myyloc2]:Set[${myyloc2}]
	Buttons.FindSetting[myxsize1]:Set[${myxsize1}]
	Buttons.FindSetting[myxsize2]:Set[${myxsize2}]
	Buttons.FindSetting[myysize1]:Set[${myysize1}]
	Buttons.FindSetting[myysize2]:Set[${myysize2}]
	Buttons.FindSetting[myghostkey]:Set[${myghostkey}]
	Buttons.FindSetting[xmlfontheight]:Set[${xmlfontheight}]
	Buttons.FindSetting[mypress1action1]:Set[${mypress1action1}]
	Buttons.FindSetting[mypress1action2]:Set[${mypress1action2}]
	Buttons.FindSetting[mypress1action3]:Set[${mypress1action3}]
	Buttons.FindSetting[mypress1action4]:Set[${mypress1action4}]
	Buttons.FindSetting[mypress1action5]:Set[${mypress1action5}]
	Buttons.FindSetting[mypress1action6]:Set[${mypress1action6}]
	Buttons.FindSetting[mypress1action7]:Set[${mypress1action7}]
	Buttons.FindSetting[mypress1action8]:Set[${mypress1action8}]
	Buttons.FindSetting[mypress1action9]:Set[${mypress1action9}]
	Buttons.FindSetting[mypress1action10]:Set[${mypress1action10}]
	Buttons.FindSetting[mypress1action11]:Set[${mypress1action11}]
	Buttons.FindSetting[mypress1action12]:Set[${mypress1action12}]
	Buttons.FindSetting[mypress1action13]:Set[${mypress1action13}]
	Buttons.FindSetting[mypress1action14]:Set[${mypress1action14}]
	Buttons.FindSetting[mypress1action15]:Set[${mypress1action15}]
	Buttons.FindSetting[mypress1action16]:Set[${mypress1action16}]
	Buttons.FindSetting[mypress1action17]:Set[${mypress1action17}]
	Buttons.FindSetting[mypress1action18]:Set[${mypress1action18}]
	Buttons.FindSetting[mypress1action19]:Set[${mypress1action19}]
	Buttons.FindSetting[mypress1action20]:Set[${mypress1action20}]
	Buttons.FindSetting[mypress1action21]:Set[${mypress1action21}]
	Buttons.FindSetting[mypress1action22]:Set[${mypress1action22}]
	Buttons.FindSetting[mypress1action23]:Set[${mypress1action23}]
	Buttons.FindSetting[mypress1action24]:Set[${mypress1action24}]
	Buttons.FindSetting[mypress1action25]:Set[${mypress1action25}]
	Buttons.FindSetting[mypress1action26]:Set[${mypress1action26}]
	Buttons.FindSetting[mypress1action27]:Set[${mypress1action27}]
	Buttons.FindSetting[mypress1action28]:Set[${mypress1action28}]
	Buttons.FindSetting[mypress2action1]:Set[${mypress2action1}]
	Buttons.FindSetting[mypress2action2]:Set[${mypress2action2}]
	Buttons.FindSetting[mypress2action3]:Set[${mypress2action3}]
	Buttons.FindSetting[mypress2action4]:Set[${mypress2action4}]
	Buttons.FindSetting[mypress2action5]:Set[${mypress2action5}]
	Buttons.FindSetting[mypress2action6]:Set[${mypress2action6}]
	Buttons.FindSetting[mypress2action7]:Set[${mypress2action7}]
	Buttons.FindSetting[mypress2action8]:Set[${mypress2action8}]
	Buttons.FindSetting[mypress2action9]:Set[${mypress2action9}]
	Buttons.FindSetting[mypress2action10]:Set[${mypress2action10}]
	Buttons.FindSetting[mypress2action11]:Set[${mypress2action11}]
	Buttons.FindSetting[mypress2action12]:Set[${mypress2action12}]
	Buttons.FindSetting[mypress2action13]:Set[${mypress2action13}]
	Buttons.FindSetting[mypress2action14]:Set[${mypress2action14}]
	Buttons.FindSetting[mypress2action15]:Set[${mypress2action15}]
	Buttons.FindSetting[mypress2action16]:Set[${mypress2action16}]
	Buttons.FindSetting[mypress2action17]:Set[${mypress2action17}]
	Buttons.FindSetting[mypress2action18]:Set[${mypress2action18}]
	Buttons.FindSetting[mypress2action19]:Set[${mypress2action19}]
	Buttons.FindSetting[mypress2action20]:Set[${mypress2action20}]
	Buttons.FindSetting[mypress2action21]:Set[${mypress2action21}]
	Buttons.FindSetting[mypress2action22]:Set[${mypress2action22}]
	Buttons.FindSetting[mypress2action23]:Set[${mypress2action23}]
	Buttons.FindSetting[mypress2action24]:Set[${mypress2action24}]
	Buttons.FindSetting[mypress2action25]:Set[${mypress2action25}]
	Buttons.FindSetting[mypress2action26]:Set[${mypress2action26}]
	Buttons.FindSetting[mypress2action27]:Set[${mypress2action27}]
	Buttons.FindSetting[mypress2action28]:Set[${mypress2action28}]
	Buttons.FindSetting[mybuttonhide1]:Set[${mybuttonhide1}]
	Buttons.FindSetting[mybuttonhide2]:Set[${mybuttonhide2}]
	Buttons.FindSetting[mybuttonhide3]:Set[${mybuttonhide3}]
	Buttons.FindSetting[mybuttonhide4]:Set[${mybuttonhide4}]
	Buttons.FindSetting[mybuttonhide5]:Set[${mybuttonhide5}]
	Buttons.FindSetting[mybuttonhide6]:Set[${mybuttonhide6}]
	Buttons.FindSetting[mybuttonhide7]:Set[${mybuttonhide7}]
	Buttons.FindSetting[mybuttonhide8]:Set[${mybuttonhide8}]
	Buttons.FindSetting[mybuttonhide9]:Set[${mybuttonhide9}]
	Buttons.FindSetting[mybuttonhide10]:Set[${mybuttonhide10}]
	Buttons.FindSetting[mybuttonhide11]:Set[${mybuttonhide11}]
	Buttons.FindSetting[mybuttonhide12]:Set[${mybuttonhide12}]
	Buttons.FindSetting[mybuttonhide13]:Set[${mybuttonhide13}]
	Buttons.FindSetting[mybuttonhide14]:Set[${mybuttonhide14}]
	Buttons.FindSetting[mybuttonhide15]:Set[${mybuttonhide15}]
	Buttons.FindSetting[mybuttonhide16]:Set[${mybuttonhide16}]
	Buttons.FindSetting[mybuttonhide17]:Set[${mybuttonhide17}]
	Buttons.FindSetting[mybuttonhide18]:Set[${mybuttonhide18}]
	Buttons.FindSetting[mybuttonhide19]:Set[${mybuttonhide19}]
	Buttons.FindSetting[mybuttonhide20]:Set[${mybuttonhide20}]
	Buttons.FindSetting[mybuttonhide21]:Set[${mybuttonhide21}]
	Buttons.FindSetting[mybuttonhide22]:Set[${mybuttonhide22}]
	Buttons.FindSetting[mybuttonhide23]:Set[${mybuttonhide23}]
	Buttons.FindSetting[mybuttonhide24]:Set[${mybuttonhide24}]
	Buttons.FindSetting[mybuttonhide25]:Set[${mybuttonhide25}]
	Buttons.FindSetting[mybuttonhide26]:Set[${mybuttonhide26}]
	Buttons.FindSetting[mybuttonhide27]:Set[${mybuttonhide27}]
	Buttons.FindSetting[mybuttonhide28]:Set[${mybuttonhide28}]
	Buttons.FindSetting[zxmlcolor1]:Set[${zxmlcolor1}]
	Buttons.FindSetting[zxmlcolor2]:Set[${zxmlcolor2}]
	Buttons.FindSetting[zxmlcolor3]:Set[${zxmlcolor3}]
	Buttons.FindSetting[zxmlcolor4]:Set[${zxmlcolor4}]
	Buttons.FindSetting[zxmlcolor5]:Set[${zxmlcolor5}]
	Buttons.FindSetting[zxmlcolor6]:Set[${zxmlcolor6}]
	Buttons.FindSetting[zxmlcolor7]:Set[${zxmlcolor7}]
	Buttons.FindSetting[zxmlcolor8]:Set[${zxmlcolor8}]
	Buttons.FindSetting[zxmlcolor9]:Set[${zxmlcolor9}]
	Buttons.FindSetting[zxmlcolor10]:Set[${zxmlcolor10}]
	Buttons.FindSetting[zxmlcolor11]:Set[${zxmlcolor11}]
	Buttons.FindSetting[zxmlcolor12]:Set[${zxmlcolor12}]
	Buttons.FindSetting[zxmlcolor13]:Set[${zxmlcolor13}]
	Buttons.FindSetting[zxmlcolor14]:Set[${zxmlcolor14}]
	Buttons.FindSetting[zxmlcolor15]:Set[${zxmlcolor15}]
	Buttons.FindSetting[zxmlcolor16]:Set[${zxmlcolor16}]
	Buttons.FindSetting[zxmlcolor17]:Set[${zxmlcolor17}]
	Buttons.FindSetting[zxmlcolor18]:Set[${zxmlcolor18}]
	Buttons.FindSetting[zxmlcolor19]:Set[${zxmlcolor19}]
	Buttons.FindSetting[zxmlcolor20]:Set[${zxmlcolor20}]
	Buttons.FindSetting[zxmlcolor21]:Set[${zxmlcolor21}]
	Buttons.FindSetting[zxmlcolor22]:Set[${zxmlcolor22}]
	Buttons.FindSetting[zxmlcolor23]:Set[${zxmlcolor23}]
	Buttons.FindSetting[zxmlcolor24]:Set[${zxmlcolor24}]
	Buttons.FindSetting[zxmlcolor25]:Set[${zxmlcolor25}]
	Buttons.FindSetting[zxmlcolor26]:Set[${zxmlcolor26}]
	Buttons.FindSetting[zxmlcolor27]:Set[${zxmlcolor27}]
	Buttons.FindSetting[zxmlcolor28]:Set[${zxmlcolor28}]
	Buttons.FindSetting[yxmlcolor1]:Set[${yxmlcolor1}]
	Buttons.FindSetting[yxmlcolor2]:Set[${yxmlcolor2}]
	Buttons.FindSetting[yxmlcolor3]:Set[${yxmlcolor3}]
	Buttons.FindSetting[yxmlcolor4]:Set[${yxmlcolor4}]
	Buttons.FindSetting[yxmlcolor5]:Set[${yxmlcolor5}]
	Buttons.FindSetting[yxmlcolor6]:Set[${yxmlcolor6}]
	Buttons.FindSetting[yxmlcolor7]:Set[${yxmlcolor7}]
	Buttons.FindSetting[yxmlcolor8]:Set[${yxmlcolor8}]
	Buttons.FindSetting[yxmlcolor9]:Set[${yxmlcolor9}]
	Buttons.FindSetting[yxmlcolor10]:Set[${yxmlcolor10}]
	Buttons.FindSetting[yxmlcolor11]:Set[${yxmlcolor11}]
	Buttons.FindSetting[yxmlcolor12]:Set[${yxmlcolor12}]
	Buttons.FindSetting[yxmlcolor13]:Set[${yxmlcolor13}]
	Buttons.FindSetting[yxmlcolor14]:Set[${yxmlcolor14}]
	Buttons.FindSetting[yxmlcolor15]:Set[${yxmlcolor15}]
	Buttons.FindSetting[yxmlcolor16]:Set[${yxmlcolor16}]
	Buttons.FindSetting[yxmlcolor17]:Set[${yxmlcolor17}]
	Buttons.FindSetting[yxmlcolor18]:Set[${yxmlcolor18}]
	Buttons.FindSetting[yxmlcolor19]:Set[${yxmlcolor19}]
	Buttons.FindSetting[yxmlcolor20]:Set[${yxmlcolor20}]
	Buttons.FindSetting[yxmlcolor21]:Set[${yxmlcolor21}]
	Buttons.FindSetting[yxmlcolor22]:Set[${yxmlcolor22}]
	Buttons.FindSetting[yxmlcolor23]:Set[${yxmlcolor23}]
	Buttons.FindSetting[yxmlcolor24]:Set[${yxmlcolor24}]
	Buttons.FindSetting[yxmlcolor25]:Set[${yxmlcolor25}]
	Buttons.FindSetting[yxmlcolor26]:Set[${yxmlcolor26}]
	Buttons.FindSetting[yxmlcolor27]:Set[${yxmlcolor27}]
	Buttons.FindSetting[yxmlcolor28]:Set[${yxmlcolor28}]
	Buttons.FindSetting[vxmlbutton1]:Set[${vxmlbutton1}]
	Buttons.FindSetting[vxmlbutton2]:Set[${vxmlbutton2}]
	Buttons.FindSetting[vxmlbutton3]:Set[${vxmlbutton3}]
	Buttons.FindSetting[vxmlbutton4]:Set[${vxmlbutton4}]
	Buttons.FindSetting[vxmlbutton5]:Set[${vxmlbutton5}]
	Buttons.FindSetting[vxmlbutton6]:Set[${vxmlbutton6}]
	Buttons.FindSetting[vxmlbutton7]:Set[${vxmlbutton7}]
	Buttons.FindSetting[vxmlbutton8]:Set[${vxmlbutton8}]
	Buttons.FindSetting[vxmlbutton9]:Set[${vxmlbutton9}]
	Buttons.FindSetting[vxmlbutton10]:Set[${vxmlbutton10}]
	Buttons.FindSetting[vxmlbutton11]:Set[${vxmlbutton11}]
	Buttons.FindSetting[vxmlbutton12]:Set[${vxmlbutton12}]
	Buttons.FindSetting[vxmlbutton13]:Set[${vxmlbutton13}]
	Buttons.FindSetting[vxmlbutton14]:Set[${vxmlbutton14}]
	Buttons.FindSetting[vxmlbutton15]:Set[${vxmlbutton15}]
	Buttons.FindSetting[vxmlbutton16]:Set[${vxmlbutton16}]
	Buttons.FindSetting[vxmlbutton17]:Set[${vxmlbutton17}]
	Buttons.FindSetting[vxmlbutton18]:Set[${vxmlbutton18}]
	Buttons.FindSetting[vxmlbutton19]:Set[${vxmlbutton19}]
	Buttons.FindSetting[vxmlbutton20]:Set[${vxmlbutton20}]
	Buttons.FindSetting[vxmlbutton21]:Set[${vxmlbutton21}]
	Buttons.FindSetting[vxmlbutton22]:Set[${vxmlbutton22}]
	Buttons.FindSetting[vxmlbutton23]:Set[${vxmlbutton23}]
	Buttons.FindSetting[vxmlbutton24]:Set[${vxmlbutton24}]
	Buttons.FindSetting[vxmlbutton25]:Set[${vxmlbutton25}]
	Buttons.FindSetting[vxmlbutton26]:Set[${vxmlbutton26}]
	Buttons.FindSetting[vxmlbutton27]:Set[${vxmlbutton27}]
	Buttons.FindSetting[vxmlbutton28]:Set[${vxmlbutton28}]
	Buttons.FindSetting[vxmlbutton1a]:Set[${vxmlbutton1a}]
	Buttons.FindSetting[vxmlbutton2a]:Set[${vxmlbutton2a}]
	Buttons.FindSetting[vxmlbutton3a]:Set[${vxmlbutton3a}]
	Buttons.FindSetting[vxmlbutton4a]:Set[${vxmlbutton4a}]
	Buttons.FindSetting[vxmlbutton5a]:Set[${vxmlbutton5a}]
	Buttons.FindSetting[vxmlbutton6a]:Set[${vxmlbutton6a}]
	Buttons.FindSetting[vxmlbutton7a]:Set[${vxmlbutton7a}]
	Buttons.FindSetting[vxmlbutton8a]:Set[${vxmlbutton8a}]
	Buttons.FindSetting[vxmlbutton9a]:Set[${vxmlbutton9a}]
	Buttons.FindSetting[vxmlbutton10a]:Set[${vxmlbutton10a}]
	Buttons.FindSetting[vxmlbutton11a]:Set[${vxmlbutton11a}]
	Buttons.FindSetting[vxmlbutton12a]:Set[${vxmlbutton12a}]
	Buttons.FindSetting[vxmlbutton13a]:Set[${vxmlbutton13a}]
	Buttons.FindSetting[vxmlbutton14a]:Set[${vxmlbutton14a}]
	Buttons.FindSetting[vxmlbutton15a]:Set[${vxmlbutton15a}]
	Buttons.FindSetting[vxmlbutton16a]:Set[${vxmlbutton16a}]
	Buttons.FindSetting[vxmlbutton17a]:Set[${vxmlbutton17a}]
	Buttons.FindSetting[vxmlbutton18a]:Set[${vxmlbutton18a}]
	Buttons.FindSetting[vxmlbutton19a]:Set[${vxmlbutton19a}]
	Buttons.FindSetting[vxmlbutton20a]:Set[${vxmlbutton20a}]
	Buttons.FindSetting[vxmlbutton21a]:Set[${vxmlbutton21a}]
	Buttons.FindSetting[vxmlbutton22a]:Set[${vxmlbutton22a}]
	Buttons.FindSetting[vxmlbutton23a]:Set[${vxmlbutton23a}]
	Buttons.FindSetting[vxmlbutton24a]:Set[${vxmlbutton24a}]
	Buttons.FindSetting[vxmlbutton25a]:Set[${vxmlbutton25a}]
	Buttons.FindSetting[vxmlbutton26a]:Set[${vxmlbutton26a}]
	Buttons.FindSetting[vxmlbutton27a]:Set[${vxmlbutton27a}]
	Buttons.FindSetting[vxmlbutton28a]:Set[${vxmlbutton28a}]
	Buttons.FindSetting[uxmlbuttontext1]:Set[${uxmlbuttontext1}]
	Buttons.FindSetting[uxmlbuttontext2]:Set[${uxmlbuttontext2}]
	Buttons.FindSetting[uxmlbuttontext3]:Set[${uxmlbuttontext3}]
	Buttons.FindSetting[uxmlbuttontext4]:Set[${uxmlbuttontext4}]
	Buttons.FindSetting[uxmlbuttontext5]:Set[${uxmlbuttontext5}]
	Buttons.FindSetting[uxmlbuttontext6]:Set[${uxmlbuttontext6}]
	Buttons.FindSetting[uxmlbuttontext7]:Set[${uxmlbuttontext7}]
	Buttons.FindSetting[uxmlbuttontext8]:Set[${uxmlbuttontext8}]
	Buttons.FindSetting[uxmlbuttontext9]:Set[${uxmlbuttontext9}]
	Buttons.FindSetting[uxmlbuttontext10]:Set[${uxmlbuttontext10}]
	Buttons.FindSetting[uxmlbuttontext11]:Set[${uxmlbuttontext11}]
	Buttons.FindSetting[uxmlbuttontext12]:Set[${uxmlbuttontext12}]
	Buttons.FindSetting[uxmlbuttontext13]:Set[${uxmlbuttontext13}]
	Buttons.FindSetting[uxmlbuttontext14]:Set[${uxmlbuttontext14}]
	Buttons.FindSetting[uxmlbuttontext15]:Set[${uxmlbuttontext15}]
	Buttons.FindSetting[uxmlbuttontext16]:Set[${uxmlbuttontext16}]
	Buttons.FindSetting[uxmlbuttontext17]:Set[${uxmlbuttontext17}]
	Buttons.FindSetting[uxmlbuttontext18]:Set[${uxmlbuttontext18}]
	Buttons.FindSetting[uxmlbuttontext19]:Set[${uxmlbuttontext19}]
	Buttons.FindSetting[uxmlbuttontext20]:Set[${uxmlbuttontext20}]
	Buttons.FindSetting[uxmlbuttontext21]:Set[${uxmlbuttontext21}]
	Buttons.FindSetting[uxmlbuttontext22]:Set[${uxmlbuttontext22}]
	Buttons.FindSetting[uxmlbuttontext23]:Set[${uxmlbuttontext23}]
	Buttons.FindSetting[uxmlbuttontext24]:Set[${uxmlbuttontext24}]
	Buttons.FindSetting[uxmlbuttontext25]:Set[${uxmlbuttontext25}]
	Buttons.FindSetting[uxmlbuttontext26]:Set[${uxmlbuttontext26}]
	Buttons.FindSetting[uxmlbuttontext27]:Set[${uxmlbuttontext27}]
	Buttons.FindSetting[uxmlbuttontext28]:Set[${uxmlbuttontext28}]
	Buttons.FindSetting[uxmlbuttontext1a]:Set[${uxmlbuttontext1a}]
	Buttons.FindSetting[uxmlbuttontext2a]:Set[${uxmlbuttontext2a}]
	Buttons.FindSetting[uxmlbuttontext3a]:Set[${uxmlbuttontext3a}]
	Buttons.FindSetting[uxmlbuttontext4a]:Set[${uxmlbuttontext4a}]
	Buttons.FindSetting[uxmlbuttontext5a]:Set[${uxmlbuttontext5a}]
	Buttons.FindSetting[uxmlbuttontext6a]:Set[${uxmlbuttontext6a}]
	Buttons.FindSetting[uxmlbuttontext7a]:Set[${uxmlbuttontext7a}]
	Buttons.FindSetting[uxmlbuttontext8a]:Set[${uxmlbuttontext8a}]
	Buttons.FindSetting[uxmlbuttontext9a]:Set[${uxmlbuttontext9a}]
	Buttons.FindSetting[uxmlbuttontext10a]:Set[${uxmlbuttontext10a}]
	Buttons.FindSetting[uxmlbuttontext11a]:Set[${uxmlbuttontext11a}]
	Buttons.FindSetting[uxmlbuttontext12a]:Set[${uxmlbuttontext12a}]
	Buttons.FindSetting[uxmlbuttontext13a]:Set[${uxmlbuttontext13a}]
	Buttons.FindSetting[uxmlbuttontext14a]:Set[${uxmlbuttontext14a}]
	Buttons.FindSetting[uxmlbuttontext15a]:Set[${uxmlbuttontext15a}]
	Buttons.FindSetting[uxmlbuttontext16a]:Set[${uxmlbuttontext16a}]
	Buttons.FindSetting[uxmlbuttontext17a]:Set[${uxmlbuttontext17a}]
	Buttons.FindSetting[uxmlbuttontext18a]:Set[${uxmlbuttontext18a}]
	Buttons.FindSetting[uxmlbuttontext19a]:Set[${uxmlbuttontext19a}]
	Buttons.FindSetting[uxmlbuttontext20a]:Set[${uxmlbuttontext20a}]
	Buttons.FindSetting[uxmlbuttontext21a]:Set[${uxmlbuttontext21a}]
	Buttons.FindSetting[uxmlbuttontext22a]:Set[${uxmlbuttontext22a}]
	Buttons.FindSetting[uxmlbuttontext23a]:Set[${uxmlbuttontext23a}]
	Buttons.FindSetting[uxmlbuttontext24a]:Set[${uxmlbuttontext24a}]
	Buttons.FindSetting[uxmlbuttontext25a]:Set[${uxmlbuttontext25a}]
	Buttons.FindSetting[uxmlbuttontext26a]:Set[${uxmlbuttontext26a}]
	Buttons.FindSetting[uxmlbuttontext27a]:Set[${uxmlbuttontext27a}]
	Buttons.FindSetting[uxmlbuttontext28a]:Set[${uxmlbuttontext28a}]
	Buttons.FindSetting[exmlbutton1]:Set[${exmlbutton1}]
	Buttons.FindSetting[exmlbutton2]:Set[${exmlbutton2}]
	Buttons.FindSetting[exmlbutton3]:Set[${exmlbutton3}]
	Buttons.FindSetting[exmlbutton4]:Set[${exmlbutton4}]
	Buttons.FindSetting[exmlbutton5]:Set[${exmlbutton5}]
	Buttons.FindSetting[exmlbutton6]:Set[${exmlbutton6}]
	Buttons.FindSetting[exmlbutton7]:Set[${exmlbutton7}]
	Buttons.FindSetting[exmlbutton8]:Set[${exmlbutton8}]
	Buttons.FindSetting[exmlbutton9]:Set[${exmlbutton9}]
	Buttons.FindSetting[exmlbutton10]:Set[${exmlbutton10}]
	Buttons.FindSetting[exmlbutton11]:Set[${exmlbutton11}]
	Buttons.FindSetting[exmlbutton12]:Set[${exmlbutton12}]
	Buttons.FindSetting[exmlbutton13]:Set[${exmlbutton13}]
	Buttons.FindSetting[exmlbutton14]:Set[${exmlbutton14}]
	Buttons.FindSetting[exmlbutton15]:Set[${exmlbutton15}]
	Buttons.FindSetting[exmlbutton16]:Set[${exmlbutton16}]
	Buttons.FindSetting[exmlbutton17]:Set[${exmlbutton17}]
	Buttons.FindSetting[exmlbutton18]:Set[${exmlbutton18}]
	Buttons.FindSetting[exmlbutton19]:Set[${exmlbutton19}]
	Buttons.FindSetting[exmlbutton20]:Set[${exmlbutton20}]
	Buttons.FindSetting[exmlbutton21]:Set[${exmlbutton21}]
	Buttons.FindSetting[exmlbutton22]:Set[${exmlbutton22}]
	Buttons.FindSetting[exmlbutton23]:Set[${exmlbutton23}]
	Buttons.FindSetting[exmlbutton24]:Set[${exmlbutton24}]
	Buttons.FindSetting[exmlbutton25]:Set[${exmlbutton25}]
	Buttons.FindSetting[exmlbutton26]:Set[${exmlbutton26}]
	Buttons.FindSetting[exmlbutton27]:Set[${exmlbutton27}]
	Buttons.FindSetting[exmlbutton28]:Set[${exmlbutton28}]
	
	LavishSettings[${MYSET}]:Export["${MYCONFIGPATH}/eqisbuttonsconfig.xml"]
	
}

;***********************************************************************************************************************
;Function executed on window close (clicked X) export settings and unload UI
;***********************************************************************************************************************

function atexit()
{
	call export
	ui -unload "${MYUIPATH}/eqisbuttons.xml"
	if ${uiversion.Equal[Ghost]}
	{
		ui -unload "${MYUIPATH}/eqisghost1.xml"
		ui -unload "${MYUIPATH}/eqisghost2.xml"
	}
}